summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-02 21:52:45 +0100
committerSebastian Geerken <devnull@localhost>2015-01-02 21:52:45 +0100
commitd607e263e4481f38f0c1f089b0bae9522b1bb71a (patch)
treeec74b899bfcb574076a7320e6619012c5ce667a0
parent4008a8962e30437449cafbc0f178c7f2b92dd57c (diff)
List items are also widened (like 'normal' textblocks).
-rw-r--r--dw/textblock.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index 4bc74669..481317fb 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -845,11 +845,14 @@ 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 = getStyle()->vloat != core::style::FLOAT_NONE,
- result = toplevel || (block && !vloat);
- DBG_OBJ_MSGF ("resize", 0, "=> %s (toplevel: %s, block: %s, float: %s)",
+ result = toplevel || ((block || listitem) && !vloat);
+ DBG_OBJ_MSGF ("resize", 0,
+ "=> %s (toplevel: %s, block: %s, listitem: %s, float: %s)",
result ? "true" : "false", toplevel ? "true" : "false",
- block ? "true" : "false", vloat ? "true" : "false");
+ block ? "true" : "false", listitem ? "true" : "false",
+ vloat ? "true" : "false");
DBG_OBJ_LEAVE ();
return result;
}