aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-10-03 12:50:07 +0200
committerSebastian Geerken <devnull@localhost>2014-10-03 12:50:07 +0200
commit5f1cf298395601f67afc9aff78e547d915663daf (patch)
treedac13a5883ed3616861a212da724f2999883a4a0
parent4d154339cf13216d97a460cfbc6bfa7f3fac040e (diff)
Blocks with 'overview' set to another value than (the default value) 'visible' are regarded as container for floats, too.
-rw-r--r--dw/textblock.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index a72b2ad1..15bb03ec 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -916,6 +916,9 @@ bool Textblock::isContainingBlock (Widget *widget)
!widget->getParent()->instanceOf (Textblock::CLASS_ID) ||
// Inline blocks are containing blocks, too.
widget->getStyle()->display == core::style::DISPLAY_INLINE_BLOCK ||
+ // Same for blocks with 'overview' set to another value than
+ // (the default value) 'visible'.
+ widget->getStyle()->overflow != core::style::OVERFLOW_VISIBLE ||
// Finally, "out of flow" in a narrower sense: floats and
// absolute positions.
OutOfFlowMgr::isWidgetOutOfFlow (widget));