Skip to content

Commit

Permalink
Merge pull request #1289 from vivliostyle/fix/issue1288
Browse files Browse the repository at this point in the history
fix: break-before specified on floats may not work
  • Loading branch information
MurakamiShinyu authored Feb 24, 2024
2 parents ebcc38a + 06890fe commit e6ce626
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/vivliostyle/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2736,6 +2736,10 @@ export class Column extends VtreeImpl.Container implements Layout.Column {
if (!lastAfterNodeContext) {
return false;
}
// Exclude if itself is a float (Issue #1288)
if (nodeContext.floatSide) {
return false;
}
for (let nc = lastAfterNodeContext; nc?.parent; nc = nc.parent) {
let node = nc.after ? nc.viewNode : nc.viewNode?.previousSibling;
while (
Expand Down

0 comments on commit e6ce626

Please sign in to comment.