summaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index 2845a8e9..d46d2455 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -374,6 +374,13 @@ void Layout::addWidget (Widget *widget)
return;
}
+ // The toplevel widget always establishes a stacking context. It could
+ // already be set in Widget::setStyle().
+ if (widget->stackingContextMgr == NULL) {
+ widget->stackingContextMgr = new StackingContextMgr (widget);
+ DBG_OBJ_ASSOC (widget, widget->stackingContextMgr);
+ }
+
topLevel = widget;
widget->layout = this;
widget->container = NULL;