diff options
author | Sebastian Geerken <devnull@localhost> | 2014-07-13 00:51:51 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-07-13 00:51:51 +0200 |
commit | 55559a8ef3d847c97d94c215cb207807b5c665ff (patch) | |
tree | d0e70c63419091f63ea4ef07aad6d24e28059740 | |
parent | 6650105f9e365de1e45a0779e0300507e0e6dfda (diff) |
Deactivated percentage heights (another place).
-rw-r--r-- | dw/widget.cc | 5 |
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)", |