From fd8097192fa36c15866915fd3bed252ea2a5dcbc Mon Sep 17 00:00:00 2001
From: RedMser <5117197+RedMser@users.noreply.github.com>
Date: Sun, 25 Sep 2022 19:13:24 +0200
Subject: [PATCH] Fix Control.get_global_rect documentation
It uses `get_global_position` internally, which is relative to the
current canvas layer (unlike `get_screen_position`).
---
doc/classes/Control.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml
index 7b9bf0fa37b..2a602010185 100644
--- a/doc/classes/Control.xml
+++ b/doc/classes/Control.xml
@@ -383,7 +383,7 @@
- Returns the position and size of the control relative to the top-left corner of the screen. See [member position] and [member size].
+ Returns the position and size of the control relative to the [CanvasLayer]. See [member global_position] and [member size].
@@ -999,7 +999,7 @@
If this property is not set, Godot will select a "best guess" based on surrounding nodes in the scene tree.
- The node's global position, relative to the world (usually to the top-left corner of the window).
+ The node's global position, relative to the world (usually to the [CanvasLayer]).
Controls the direction on the horizontal axis in which the control should grow if its horizontal minimum size is changed to be greater than its current size, as the control always has to be at least the minimum size.