Reserve floatsep between stacked floats
This commit is contained in:
1 parent
521c87d952
commit
1014713ec0
4 files changed
+167
-56
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user