From 8832b5ab0a966b59aef3a7dd35c996c3b13fc390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 3 Mar 2017 01:00:49 +0100 Subject: [PATCH] layout_thread: Also reposition elements when reflowing all nodes. Fixes #15801 --- components/layout_thread/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 1838eb7126f..1609ea2ae17 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -1500,7 +1500,9 @@ impl LayoutThread { fn reflow_all_nodes(flow: &mut Flow) { debug!("reflowing all nodes!"); - flow::mut_base(flow).restyle_damage.insert(REPAINT | STORE_OVERFLOW | REFLOW); + flow::mut_base(flow) + .restyle_damage + .insert(REPAINT | STORE_OVERFLOW | REFLOW | REPOSITION); for child in flow::child_iter_mut(flow) { LayoutThread::reflow_all_nodes(child);