Skip to content

Fix height paragraph box height calculation#810

Merged
Jugen merged 1 commit into
FXMisc:masterfrom
csmith:master
Mar 26, 2019
Merged

Fix height paragraph box height calculation#810
Jugen merged 1 commit into
FXMisc:masterfrom
csmith:master

Conversation

@csmith

@csmith csmith commented Mar 25, 2019

Copy link
Copy Markdown
Contributor

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

Jugen commented Mar 26, 2019

Copy link
Copy Markdown
Collaborator

@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