-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix duplicated row after line break
During the layout of a rows block, when there was not enough space left on a page for another row, the layout of that row would return an empty frame with a remainder that contained the entire row. When even this empty frame (`height: 0`) did not fit onto the old page because its margin would exceed the max height, a page break would have been inserted _before_ that frame. However, the remainder would still be prepended to the next page, resulting in a duplication of the row. This commit fixes this bug by only prepending the remainder to the next page when the frame that accompanied this remainder is actually included in the old page, i.e. the page break is inserted _after_ that frame.
- Loading branch information
Showing
4 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters