Skip to content

Improve ax::Label class #2538

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

Open
aismann opened this issue May 11, 2025 · 0 comments
Open

Improve ax::Label class #2538

aismann opened this issue May 11, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request long term

Comments

@aismann
Copy link
Contributor

aismann commented May 11, 2025

This first entry will be updated if some news/changes/etc raising up.

[FIX]
SHRINK behavior:
#2503 Odd behavior with label overflow setting: Label::Overflow::SHRINK
[ ] shrink always to the dimensions (width)
[ ] No shrink if dimensions 0, 0
[ ] All text should be on ONE line
[ ] \n should always create a new line (shrink the text block now)
[ ] enableWrap(true) should create new lines on '\n' and 'Space' (shrink the text block now)

Add new tests: (at least: should not crashing):
[ ] dimension (all) is very small (e.g. 1,1) => what should happen?
[ ] dimension (height) is very small: (e.g. 0, 10 or 500, 10)

[Improve]
[ ] cleaner code
[ ] #2503 (comment) Label::updateContent() is called every single loop, even when the content has not changed

@aismann aismann self-assigned this May 11, 2025
@aismann aismann added enhancement New feature or request long term labels May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request long term
Projects
None yet
Development

No branches or pull requests

1 participant