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

Enabled conditional auto-sizing of Annotations #19

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

emxsys
Copy link
Member

@emxsys emxsys commented Nov 26, 2018

Added behavior to auto-size an annotation if the annotation attribute's width is <= zero.

Description of the Change

  • New behavior: if width is less than or equal to zero, then the annotation is auto-sized to fit the text.
  • If the width is defined, then the previous behavior is invoked that wraps the text to the width and (optionally) constrains the text to the height.

Why Should This Be In Core?

The new behavior is desired for dynamically changing annotation text.

Benefits

The new behavior is conditional; the previous behavior is still available.

Potential Drawbacks

Unknown.

- New behavior: if width is not defined, then the annotation is auto-sized to fit the text.
- If the width is defined then the previous behavior of wrapping the text and (optionally) constraining height is invoked.
@emxsys emxsys merged commit 4395acb into develop Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant