Reserve floatsep between stacked floats

This commit is contained in:
gloamxun committed 2026-10-21 12:46:24 +08:00
1 parent 521c87d952
commit 1014713ec0
4 files changed
+167 -56

No files matched your search

+2
View File
@@ -326,6 +326,7 @@ impl Page {
.iter()
.filter(|float| float.placement == FloatPlacement::Top)
{
float_y += float.gap_before;
Self::paint_float(float, 0, float_y, &mut list);
float_y += float.height;
}
@@ -503,6 +504,7 @@ impl Page {
.iter()
.filter(|float| float.placement == FloatPlacement::Bottom)
{
float_y += float.gap_before;
Self::paint_float(float, 0, float_y, &mut list);
float_y += float.height;
}