Skip to content

Enabled conditional auto-sizing of Annotations#19

Merged
emxsys merged 1 commit intodevelopfrom
enhancement/auto-resize-annotation
Nov 26, 2018
Merged

Enabled conditional auto-sizing of Annotations#19
emxsys merged 1 commit intodevelopfrom
enhancement/auto-resize-annotation

Conversation

@emxsys
Copy link
Copy Markdown
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