diff options
author | Sebastian Geerken <devnull@localhost> | 2014-12-22 14:59:02 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-12-22 14:59:02 +0100 |
commit | 1162688e7720815b17cc6b85033ec5b63eb6440e (patch) | |
tree | d8ca3b1c43b7155c19f9e2470fae469fdf78824f /dw/oofawarewidget.cc | |
parent | 424a01ce5c2dd3cadd3d7ca60c7b43283c183b02 (diff) |
(Absolute) positions: distinguish between container (= parent widget) and reference widget.
Diffstat (limited to 'dw/oofawarewidget.cc')
-rw-r--r-- | dw/oofawarewidget.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/dw/oofawarewidget.cc b/dw/oofawarewidget.cc index ff04a642..a1901210 100644 --- a/dw/oofawarewidget.cc +++ b/dw/oofawarewidget.cc @@ -195,13 +195,10 @@ bool OOFAwareWidget::isOOFContainer (Widget *widget, int oofmIndex) testWidgetOutOfFlow (widget))); case OOFM_ABSOLUTE: - // Only the toplevel widget (as for all) as well as absolutely, - // relatively, and fixedly positioned elements constitute the - // containing block for absolutely positioned elements, but - // neither floats nor other elements like table cells, or - // elements with 'overview' set to another value than 'visible'. - return widget->instanceOf (OOFAwareWidget::CLASS_ID) && - (widget->getParent() == NULL || testWidgetPositioned (widget)); + // We use the toplevel widget as container, i. e. parent widget. + // See also OOFPosAbsMgr::isReference for the definition of the + // "reference widget". + return widget->getParent() == NULL; case OOFM_FIXED: // The single container for fixedly positioned elements is the |