Skip to content

Fix label size so that it does not resize based on fontsize#3354

Merged
kasemir merged 1 commit intoControlSystemStudio:masterfrom
rjwills28:stop_label_resize_for_fontsize
Apr 4, 2025
Merged

Fix label size so that it does not resize based on fontsize#3354
kasemir merged 1 commit intoControlSystemStudio:masterfrom
rjwills28:stop_label_resize_for_fontsize

Conversation

@rjwills28
Copy link
Copy Markdown
Contributor

If the fontsize was larger than the widget height then the Label widget would increase the height to fit the fontsize. This was undesired behaviour and also not the behaviour of other widgets displaying text. For a full description of the issue see issue: #3344

Now we fix the label widget to be the size defined by the user and the text will be cropped if too large for the widget. Note that the auto size option is not affected by this change and still works as expected - i.e. in this case the size of the Label widget is changes based on the text size.

If the fontsize was larger than the widget height then the Label
widget woult increase the height to fit the fontsize. This was
undesired behaviour and also not the behaviour of other widgets
displaying text.
Now we fix the label widget to be the size defined by the user
and the text will be cropped if too large for the widget.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants