diff options
Diffstat (limited to 'src/components/main/layout/float.rs')
-rw-r--r-- | src/components/main/layout/float.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/main/layout/float.rs b/src/components/main/layout/float.rs index 84f09723ebd..2a2758d4aab 100644 --- a/src/components/main/layout/float.rs +++ b/src/components/main/layout/float.rs @@ -183,6 +183,7 @@ impl FloatFlowData { // so this is well-defined let mut height = Au(0); + let mut clearance = Au(0); let mut full_noncontent_width = Au(0); let mut full_noncontent_height = Au(0); @@ -190,6 +191,12 @@ impl FloatFlowData { height = do box.with_base |base| { base.position.size.height }; + clearance = match box.clear() { + None => Au(0), + Some(clear) => { + self.common.floats_in.clearance(clear) + } + }; do box.with_base |base| { @@ -208,7 +215,7 @@ impl FloatFlowData { let info = PlacementInfo { width: self.common.position.size.width + full_noncontent_width, height: height + full_noncontent_height, - ceiling: Au(0), + ceiling: clearance, max_width: self.containing_width, f_type: self.float_type, }; |