diff options
author | Sebastian Geerken <devnull@localhost> | 2015-01-03 13:57:09 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-01-03 13:57:09 +0100 |
commit | 9b74c22aad29fe8c2b0de0c9683476fd078bfa4d (patch) | |
tree | 63f7432dd955e9a531aeb1686a5736ced69469c1 /dw/textblock.hh | |
parent | 974f88a4adc3ef460ad00ba3d398f697c8812393 (diff) | |
parent | dd13476e56f8e629ef5510920f09bc0d54c421be (diff) |
Merge with main repo.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r-- | dw/textblock.hh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh index 4a8290a8..0834e183 100644 --- a/dw/textblock.hh +++ b/dw/textblock.hh @@ -854,18 +854,21 @@ protected: DBG_OBJ_ENTER0 ("resize", 0, "mustBeWidenedToAvailWidth"); bool toplevel = getParent () == NULL, block = getStyle()->display == core::style::DISPLAY_BLOCK, + listitem = getStyle()->display == core::style::DISPLAY_LIST_ITEM, vloat = testWidgetFloat (this), abspos = testWidgetAbsolutelyPositioned (this), fixpos = testWidgetFixedlyPositioned (this), // In detail, this depends on what the respective OOFM does // with the child widget: - result = toplevel || (block && !(vloat || abspos || fixpos)); + result = + toplevel || ((block || listitem) && !(vloat || abspos || fixpos)); DBG_OBJ_MSGF ("resize", 0, - "=> %s (toplevel: %s, block: %s, float: %s, abspos: %s, " - "fixpos: %s)", + "=> %s (toplevel: %s, block: %s, listitem: %s, float: %s, " + "abspos: %s, fixpos: %s)", result ? "true" : "false", toplevel ? "true" : "false", - block ? "true" : "false", vloat ? "true" : "false", - abspos ? "true" : "false", fixpos ? "true" : "false"); + block ? "true" : "false", listitem ? "true" : "false", + vloat ? "true" : "false", abspos ? "true" : "false", + fixpos ? "true" : "false"); DBG_OBJ_LEAVE (); return result; } |