aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-07-13 00:51:51 +0200
committerSebastian Geerken <devnull@localhost>2014-07-13 00:51:51 +0200
commit55559a8ef3d847c97d94c215cb207807b5c665ff (patch)
treed0e70c63419091f63ea4ef07aad6d24e28059740
parent6650105f9e365de1e45a0779e0300507e0e6dfda (diff)
Deactivated percentage heights (another place).
-rw-r--r--dw/widget.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index 484dfff1..fb02dda2 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -1354,6 +1354,10 @@ void Widget::correctReqHeightOfChild (Widget *child, Requisition *requisition,
+ child->boxDiffHeight (),
&requisition->ascent, &requisition->descent);
else if (style::isPerLength (child->getStyle()->height)) {
+#if 0
+ // TODO Percentage heights are somewhat more complicated. Has to
+ // be clarified. See also Widget::correctRequisition.
+
int availHeight = getAvailHeight (false);
if (availHeight != -1) {
int containerHeight = availHeight - boxDiffHeight ();
@@ -1361,6 +1365,7 @@ void Widget::correctReqHeightOfChild (Widget *child, Requisition *requisition,
child->getStyle()->height),
&requisition->ascent, &requisition->descent);
}
+#endif
}
DBG_OBJ_MSGF ("resize", 1, "=> %d * (%d + %d)",