Skip to content

Commit

Permalink
Clarify Button's text clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Nov 16, 2024
1 parent 5efd124 commit b1371d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/Button.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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. The text is clipped only horizontally, so Button's height is not affected.
</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].
Expand Down

0 comments on commit b1371d6

Please sign in to comment.