aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-06-17 15:49:08 +0200
committerSebastian Geerken <devnull@localhost>2014-06-17 15:49:08 +0200
commit5fc15b5e955b7cd1b8c10ac6e3363a9a394f45a4 (patch)
tree39a9a16365d278fb354bb636e6ab2cb7e98a50ed /dw/textblock.cc
parent3d0f00b5c50b1d1bc55ccf051a957e753ac51ed6 (diff)
Implemented containerSizeChangedForChildren() for all widgets.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc12
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;