aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index 9693bdbb..8495f2b9 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -691,8 +691,14 @@ void Layout::resizeIdle ()
if (topLevel) {
Requisition requisition;
Allocation allocation;
-
+
topLevel->sizeRequest (&requisition);
+
+ // This method is triggered by Widget::queueResize, which will,
+ // in any case, set NEEDS_ALLOCATE (indirectly, as
+ // ALLOCATE_QUEUED). This assertion helps to find
+ // inconsistences.
+ assert (topLevel->needsAllocate ());
allocation.x = allocation.y = 0;
allocation.width = requisition.width;