diff options
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 84e58f86..594e74fe 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -774,37 +774,6 @@ int Textblock::getAvailWidthOfChild (Widget *child) return width; } -int Textblock::getAvailHeightOfChild (Widget *child) -{ - // TODO Implement also for ListItem (subtract space for bullet). - // TODO Correct by extremes? - - DBG_OBJ_MSGF ("resize", 0, "<b>getAvailHeightOfChild</b> (%p)", child); - DBG_OBJ_MSG_START (); - - int height; - - if (core::style::isAbsLength (child->getStyle()->height)) - // TODO What does "height" exactly stand for? (Content or all?) - height = core::style::absLengthVal (child->getStyle()->height); - else { - int containerHeight = getAvailHeight () - boxDiffHeight (); - if (core::style::isPerLength (child->getStyle()->height)) - height = - core::style::multiplyWithPerLength (containerHeight, - child->getStyle()->height); - else - // Although a textblock will not use the whole height, we have to - // return some value here. - height = containerHeight; - } - - DBG_OBJ_MSGF ("resize", 1, "=> %d", height); - DBG_OBJ_MSG_END (); - - return height; -} - bool Textblock::buttonPressImpl (core::EventButton *event) { return sendSelectionEvent (core::SelectionState::BUTTON_PRESS, event); |