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.
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
8242548: Wrapped labeled controls using -fx-line-spacing cut text off #173
8242548: Wrapped labeled controls using -fx-line-spacing cut text off #173
Changes from 1 commit
20ccd12
8fa8f3f
File filter...
Jump to…
aghaisasApr 22, 2020
Collaborator
Modifying 'height' parameter seems incorrect as this parameter is used in other calculations below. If needed, use a separate local variable to use 'height+lineSpacing'
hjohnApr 22, 2020
Author
Collaborator
The height used needs to be changed everywhere. However, I can move this to the caller instead, with a comment explaining why:
aghaisasApr 23, 2020
Collaborator
I see your point. I am OK with the changes that you have done.
aghaisasApr 22, 2020
Collaborator
This method makes a call to -
double eHeight = computeTextHeight(font, ellipsis, 0, boundsType);
What is the behavior if we make a call to the other method that takes in lineSpacing?
double eHeight = computeTextHeight(font, ellipsis, 0, lineSpacing, boundsType);
hjohnApr 22, 2020
Author
Collaborator
The call only determines the ellipsis height (eHeight) to see if the space is so small that even an ellipsis wouldn't fit. For a multi-line ellipsis (if there is such a thing) we could pass in the line spacing here.