diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2016-08-09 09:23:55 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2016-08-09 09:23:55 -0400 |
commit | 8c6caa83a1d686091bdf5668c4c6320ce191bb93 (patch) | |
tree | e243c906fa9db872713419df05c1372f60af8793 /dw/textblock.cc | |
parent | 8fd012cc0ebc43cd2890a6ea0cb66104d55f823f (diff) |
Merged commit #4653 (float clearance).
Test case:
<body>
<div id="a">
<div id="b" style="float:left">main</div>
</div>
<div id="c" style="clear:left"></div>
<div id="d">footer</div>
</body>
Note: passes all the tests at
http://www.dillo.org/test/4648/test-suite.v1.txt
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index d7af4420..a92832b9 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -3044,8 +3044,14 @@ void Textblock::queueDrawRange (int index1, int index2) void Textblock::updateReference (int ref) { - if (words->size () > 0) + DBG_OBJ_ENTER ("resize", 0, "updateReference", "%d", ref); + + // Only `queueResize` when there're words or float clearance + // (float clearance may change `extraSpace.top`). + if (words->size () > 0 || getStyle()->clear != core::style::CLEAR_NONE) queueResize (ref, false); + + DBG_OBJ_LEAVE (); } void Textblock::widgetRefSizeChanged (int externalIndex) |