File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/components/main/layout Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -786,6 +786,10 @@ impl InlineFlowData {
786
786
let height = Au::from_px(size.get_or_default(Size2D(0, 0)).height);
787
787
image_box.base.position.size.height = height;
788
788
789
+ if height > linebox_height {
790
+ linebox_height = height;
791
+ }
792
+
789
793
image_box.base.position.translate(&Point2D(Au(0), -height))
790
794
}
791
795
TextRenderBoxClass(text_box) => {
@@ -822,6 +826,9 @@ impl InlineFlowData {
822
826
// and other replaced content.
823
827
// FIXME(pcwalton): This seems clownshoes; can we remove?
824
828
generic_box.position.size.height = Au::from_px(30);
829
+ if generic_box.position.size.height > linebox_height {
830
+ linebox_height = generic_box.position.size.height;
831
+ }
825
832
generic_box.position
826
833
}
827
834
// FIXME(pcwalton): This isn't very type safe!
You can’t perform that action at this time.
0 commit comments