summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-03-19 02:15:55 +0100
committerkobewi <kobewi4e@gmail.com>2022-08-02 23:37:43 +0200
commit24d02dfb47ba3f339725eaea66ec747809731979 (patch)
treef351728e41480619f3f3966aa515e3e34d77c442 /doc
parent8243c7ab5df9d341209d339ab001fd8e49ee95b3 (diff)
Add fit_to_longest_item to OptionButton
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/OptionButton.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/classes/OptionButton.xml b/doc/classes/OptionButton.xml
index a7b1f0ea33..737662fe69 100644
--- a/doc/classes/OptionButton.xml
+++ b/doc/classes/OptionButton.xml
@@ -194,6 +194,10 @@
<members>
<member name="action_mode" type="int" setter="set_action_mode" getter="get_action_mode" overrides="BaseButton" enum="BaseButton.ActionMode" default="0" />
<member name="alignment" type="int" setter="set_text_alignment" getter="get_text_alignment" overrides="Button" enum="HorizontalAlignment" default="0" />
+ <member name="fit_to_longest_item" type="bool" setter="set_fit_to_longest_item" getter="is_fit_to_longest_item" default="true">
+ If [code]true[/code], minimum size will be determined by the longest item's text, instead of the currently selected one's.
+ [b]Note:[/b] For performance reasons, the minimum size doesn't update immediately when adding, removing or modifying items.
+ </member>
<member name="item_count" type="int" setter="set_item_count" getter="get_item_count" default="0">
The number of items to select from.
</member>