1
0
Fork 0

Merge pull request #99338 from KoBeWi/consider_it_fixed

Clarify Button's text clipping
This commit is contained in:
Thaddeus Crews 2024-12-11 17:35:27 -06:00
commit f20ab9b2cf
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@
If set to something other than [constant TextServer.AUTOWRAP_OFF], the text gets wrapped inside the node's bounding rectangle.
</member>
<member name="clip_text" type="bool" setter="set_clip_text" getter="get_clip_text" default="false">
When this property is enabled, text that is too large to fit the button is clipped, when disabled the Button will always be wide enough to hold the text.
If [code]true[/code], text that is too large to fit the button is clipped horizontally. If [code]false[/code], the button will always be wide enough to hold the text. The text is not vertically clipped, and the button's height is not affected by this property.
</member>
<member name="expand_icon" type="bool" setter="set_expand_icon" getter="is_expand_icon" default="false">
When enabled, the button's icon will expand/shrink to fit the button's size while keeping its aspect. See also [theme_item icon_max_width].