aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-12-11 18:17:20 +0100
committerSebastian Geerken <devnull@localhost>2014-12-11 18:17:20 +0100
commitae04d50269ea70e5e17d0975039276c0eb24de0a (patch)
treed29d51733a382007f1ce490c5647581020958737 /dw/textblock.cc
parent2bb03c759cb44241d42e3385336a1c6b9a8d7d9f (diff)
Fixed funny animation.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 1db33eb1..9b4d5380 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -793,8 +793,8 @@ int Textblock::getAvailWidthOfChild (Widget *child, bool forceValue)
!mustBeWidenedToAvailWidth ()) {
core::Extremes extremes;
getExtremes (&extremes);
- if (width > extremes.maxWidth)
- width = extremes.maxWidth;
+ if (width > extremes.maxWidth - boxDiffWidth () - leftInnerPadding)
+ width = extremes.maxWidth - boxDiffWidth () - leftInnerPadding;
}
DBG_OBJ_MSGF ("resize", 1, "=> %d", width);