Browse Source

Merge pull request #99338 from KoBeWi/consider_it_fixed

Clarify Button's text clipping
Thaddeus Crews 8 months ago
parent
commit
f20ab9b2cf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/classes/Button.xml

+ 1 - 1
doc/classes/Button.xml

@@ -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].