Skip to content

Fix not splitting elements and unnecessary overflowing in close fit case#125

Merged
adamwulf merged 1 commit intoadamwulf:masterfrom
kirara:master
Aug 22, 2013
Merged

Fix not splitting elements and unnecessary overflowing in close fit case#125
adamwulf merged 1 commit intoadamwulf:masterfrom
kirara:master

Conversation

@kirara
Copy link
Contributor

@kirara kirara commented Aug 22, 2013

The wrong condition causes that in closefit case regular elements (WITHOUT dontsplit class) are being put entirely into the current column without even trying to split them. Because of that, it often overflows, even if there's no reason for that, because we can actually split it very accurately.

The wrong condition causes that in closefit case regular elements (WITHOUT dontsplit class) are being put entirely into the current column without even trying to split them. Because of that, it often overflows, even if there's no reason for that, because we can actually split it very accurately.
@kirara
Copy link
Contributor Author

kirara commented Aug 22, 2013

Basically there are 3 cases. If we are processing image or element with the dontsplit class and it's close fit, we squeeze it to the current column. If it's not close fit, we put it in the next column. Otherwise, if we are processing regular text element without dontsplit class, regardless closeness of the fit, we try to split it for the exact height. This is how I understand it from the comments and it seems logical. There's just this one little mistake.

I already reported it 8 months ago: #76
I'm waiting for this 1 character fix since then.

adamwulf added a commit that referenced this pull request Aug 22, 2013
Fix not splitting elements and unnecessary overflowing in close fit case
@adamwulf adamwulf merged commit 03248eb into adamwulf:master Aug 22, 2013
@adamwulf
Copy link
Owner

yikes, really not sure why it took me so long to get on this. thanks for filing + for the pull request. it's in master now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants