diff --git a/doc/classes/Button.xml b/doc/classes/Button.xml index 98f25ed573b..68fb918904f 100644 --- a/doc/classes/Button.xml +++ b/doc/classes/Button.xml @@ -119,7 +119,7 @@ Icon modulate [Color] used when the [Button] is being pressed. - This constant acts as a boolean. If [code]true[/code], text and icon are always aligned to the largest stylebox margins, otherwise it's aligned to the current button state stylebox margins. + This constant acts as a boolean. If [code]true[/code], the minimum size of the button and text/icon alignment is always based on the largest stylebox margins, otherwise it's based on the current button state stylebox margins. The horizontal space between [Button]'s icon and text. Negative values will be treated as [code]0[/code] when used. diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp index 4e738216de2..dd344121e1a 100644 --- a/scene/gui/button.cpp +++ b/scene/gui/button.cpp @@ -530,7 +530,7 @@ Size2 Button::get_minimum_size_for_text_and_icon(const String &p_text, Refget_minimum_size()) + minsize; } void Button::_shape(Ref p_paragraph, String p_text) {