aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-02 14:03:08 +0200
committerSebastian Geerken <devnull@localhost>2014-09-02 14:03:08 +0200
commit18ee7bb9c96f02dc9cf6ce2091bdc33231954af3 (patch)
treee6be6ca18eb2383cac332baadfe3fd4945bc2bf7 /dw/textblock.hh
parent7d84e4f6725dbf62d55753e21f8a09be5370bdc7 (diff)
More work on fixed positions.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r--dw/textblock.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index f46edaa4..14bfdbbb 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -847,9 +847,11 @@ protected:
inline bool mustBeWidenedToAvailWidth () {
DBG_OBJ_ENTER0 ("resize", 0, "mustBeWidenedToAvailWidth");
- // TODO Probably absolutely positioned textblocks must be excluded, too.
bool b = getStyle()->display == core::style::DISPLAY_BLOCK &&
- getStyle()->vloat == core::style::FLOAT_NONE;
+ // In detail, this depends on what the respective OOFM does
+ // with the child widget:
+ !(testWidgetFloat (this) || testWidgetAbsolutelyPositioned (this) ||
+ testWidgetFixedPositioned (this));
DBG_OBJ_MSGF ("resize", 0, "=> %s", b ? "true" : "false");
DBG_OBJ_LEAVE ();
return b;