Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix height paragraph box height calculation #810

Merged
merged 1 commit into from
Mar 26, 2019
Merged

Conversation

csmith
Copy link
Contributor

@csmith csmith commented Mar 25, 2019

The insets were removed from the "overhead" when they should have been
added. This was asking the text for its preferred height if it had
(width + insets) space, rather than (width - insets).

Because of this, some paragraphs give a preferred height of one line
less than they should (because they wouldn't need to wrap given the
extra space that's actually occupied by the insets).

Fixes #809

The insets were removed from the "overhead" when they should have been
added. This was asking the text for its preferred height if it had
(width + insets) space, rather than (width - insets).

Because of this, some paragraphs give a preferred height of one line
less than they should (because they wouldn't need to wrap given the
extra space that's actually occupied by the insets).

Closes FXMisc#809
@Jugen Jugen merged commit c6ee8f1 into FXMisc:master Mar 26, 2019
@Jugen
Copy link
Collaborator

Jugen commented Mar 26, 2019

@csmith thanks alot for the PR and fix.

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