From eabf8f5edf6dc3346bd6a6e771e382f1a20a5c29 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Sat, 20 Nov 2021 11:04:57 +0300 Subject: Added `reset_size` method to `Control` and `Window` classes --- doc/classes/Control.xml | 6 ++++++ doc/classes/Window.xml | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'doc') diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index f6bb812070..8abaff741a 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -714,6 +714,12 @@ Removes a local override for a theme [StyleBox] with the specified [code]name[/code] previously added by [method add_theme_stylebox_override] or via the Inspector dock. + + + + Resets the size to [method get_combined_minimum_size]. This is equivalent to calling [code]set_size(Vector2())[/code] (or any size below the minimum). + + diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml index f36b926bef..3fee1feae8 100644 --- a/doc/classes/Window.xml +++ b/doc/classes/Window.xml @@ -230,6 +230,12 @@ + + + + Resets the size to the minimum size, which is the max of [member min_size] and (if [member wrap_controls] is enabled) [method get_contents_minimum_size]. This is equivalent to calling [code]set_size(Vector2i())[/code] (or any size below the minimum). + + -- cgit v1.2.3