aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-08-22 23:28:02 +0200
committerSebastian Geerken <devnull@localhost>2014-08-22 23:28:02 +0200
commitb44aef32ebc9daa2dbcc3a916e53711c6676e458 (patch)
tree84e21b7210a0273ed73e7bb6f0e9d78ecccbe100 /dw/widget.cc
parenta22eca2db8a8cb7e4f591bf9c775be2439e39a6a (diff)
Fixed CSS width calculation bug.
Diffstat (limited to 'dw/widget.cc')
-rw-r--r--dw/widget.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index 337a0d55..12e0a3a2 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -1570,8 +1570,8 @@ void Widget::correctReqWidthOfChild (Widget *child, Requisition *requisition)
assert (this == child->quasiParent || this == child->container);
int limitMinWidth = child->getMinWidth (NULL, true);
- calcFinalWidth (child->getStyle(), -1, this, limitMinWidth, false,
- &requisition->width);
+ child->calcFinalWidth (child->getStyle(), -1, this, limitMinWidth, false,
+ &requisition->width);
DBG_OBJ_MSGF ("resize", 1, "=> %d * (%d + %d)",
requisition->width, requisition->ascent,