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

Druid text does not scale based on text node height #295

Open
plotlessplot opened this issue Jan 29, 2025 · 2 comments
Open

Druid text does not scale based on text node height #295

plotlessplot opened this issue Jan 29, 2025 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@plotlessplot
Copy link

In Druid 1.0, text does not seem to scale to fit within the boundaries of a text node's height. It fits the text taking into account the node's width, but any changes to the node's height have no impact on the text size.

Current behavior:
Changing text node height has no impact on text size.
Image

Ideal/expected behavior:
Changing text node height changes text size.
Image

@plotlessplot
Copy link
Author

@Insality It seems like removing the is_multiline check in the update_text_area_size function in the text.lua module was enough to change the behavior to the expected one. Am I missing something?

@Insality
Copy link
Owner

Yea, seems the adjust by height now working only for text nodes with "line break" option for some reason

In previous releases the adjusting by height was a kind of a problem and currently don't have any clue why is that now

So probably the current solutions is to set "line break" and make the text node size width pretty high if it suitable

WIll investigate later for adjusting by height for the texts. Thanks for the report!

@Insality Insality self-assigned this Jan 29, 2025
@Insality Insality added bug Something isn't working enhancement New feature or request labels Jan 29, 2025
@Insality Insality added this to the 1.1 milestone Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants