From 82765c2f6b61c9777a9edebb46330e15be1102d0 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Mon, 22 Jul 2013 10:45:19 -0600 Subject: [PATCH] Float children are now positioned relative to the float's box. --- src/components/main/layout/float.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/main/layout/float.rs b/src/components/main/layout/float.rs index 9681f6e1f64..d51ab0849a0 100644 --- a/src/components/main/layout/float.rs +++ b/src/components/main/layout/float.rs @@ -253,7 +253,7 @@ impl FloatFlowData { let flow = FloatFlow(self); for flow.each_child |child| { do child.with_mut_base |base| { - base.abs_position = offset; + base.abs_position = offset + base.position.origin; } }