Requested Feature #3341 = breakWhenNeeded#3372
Open
caticHarun wants to merge 7 commits intodiegomura:masterfrom
Open
Requested Feature #3341 = breakWhenNeeded#3372caticHarun wants to merge 7 commits intodiegomura:masterfrom
caticHarun wants to merge 7 commits intodiegomura:masterfrom
Conversation
…lename_breaks_on_windows.jpg
…§è!çà)-^$ù`,;:=?.+%£¨*<>.jpg
Break when needed
🦋 Changeset detectedLatest commit: 62dac5c The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Owner
|
I don't think I understand the difference between break and breakWhenNeeded (nor I like the name of the prop too much :)) |
Author
|
break=true always makes a page break But breakWhenNeeded adds a page break if the element is going to wrap on another page. But if that element is bigger than the whole page (e.g if is is bigger than the A4 Format), then it continues normally (with a page break before) |
Author
Author
|
Name of the prop is not important, it can always be changed :) |
Author
|
let me know how to proceed |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




closes #3341
This feature adds a property "breakWhenNeeded".
If breakWhenNeeded=true and element cannot fit on the page, then it adds a page break before
The main difference between wrap=false and breakWhenNeeded=true is that in wrap={false} the element is limited on one page. Whereas in breakWhenNeeded=true, it only adds a break before and it continues on as it should