diff options
author | Sebastian Geerken <devnull@localhost> | 2014-06-17 15:49:08 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-06-17 15:49:08 +0200 |
commit | 5fc15b5e955b7cd1b8c10ac6e3363a9a394f45a4 (patch) | |
tree | 39a9a16365d278fb354bb636e6ab2cb7e98a50ed /dw/textblock.cc | |
parent | 3d0f00b5c50b1d1bc55ccf051a957e753ac51ed6 (diff) |
Implemented containerSizeChangedForChildren() for all widgets.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 4601a5c4..34e5084b 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -607,6 +607,18 @@ void Textblock::sizeAllocateImpl (core::Allocation *allocation) } } +void Textblock::containerSizeChangedForChildren () +{ + for (int i = 0; i < words->size (); i++) { + Word *word = words->getRef (i); + if (word->content.type == core::Content::WIDGET_IN_FLOW) + word->content.widget->containerSizeChanged (); + } + + if (outOfFlowMgr) + outOfFlowMgr->containerSizeChangedForChildren (); +} + bool Textblock::usesAvailWidth () { return true; |