-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add fuzziness to softwrapping label manager. #218
base: master
Are you sure you want to change the base?
Conversation
Add a property that should be set on Labels and expand the softwrapping label manager to fuzzily check whether the next line could be placed on the current line. This reduces wasted whitespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the requested change, LGTM. Does what it says it does. The only awkward thing that could arise is that texts with a lot of lines could then be consistent in width with only the last line sticking out, but for such labels the property does not make much sense to use anyways.
/** Amount of line overhang that is permitted in percent of the effevtiveTargetWidth | ||
* | ||
* */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover comment text?
Correct spelling of fuzziness Remove superfluous comment Add check to only execute fuzzy code when it would have an effect
PR is now dependent on this PR in ELK: eclipse/elk#1082 |
Add a property that should be set on Labels and expand the softwrapping label manager to fuzzily check whether the next line could be placed on the current line.
This reduces wasted whitespace.