aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-08-01 23:23:52 +0200
committerSebastian Geerken <devnull@localhost>2014-08-01 23:23:52 +0200
commit71bd40fb3fe85b16aeadfb26f5a14038b9a5797f (patch)
tree998ef967d84dd3e931c02357ece5723fdfed7c3a /dw/textblock.hh
parent149ad668aaf47f85a60b48f9c4b3f641baa94e15 (diff)
Start work on 'inline-block'.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r--dw/textblock.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index 2f30068e..11875c22 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -781,8 +781,8 @@ protected:
inline bool mustBeWidenedToAvailWidth () {
DBG_OBJ_ENTER0 ("resize", 0, "mustBeWidenedToAvailWidth");
- // TODO Consider inline blocks etc. later.
- bool b = /*getStyle()->display == core::style::DISPLAY_BLOCK &&*/
+ // TODO Probably absolutely positioned textblocks must be excluded, too.
+ bool b = getStyle()->display == core::style::DISPLAY_BLOCK &&
getStyle()->vloat == core::style::FLOAT_NONE;
DBG_OBJ_MSGF ("resize", 0, "=> %s", b ? "true" : "false");
DBG_OBJ_LEAVE ();