Browse Source

Merge pull request #78626 from Sauermann/fix-centered-doc

Fix documentation of `popup_centered_ratio`
Rémi Verschelde 2 năm trước cách đây
mục cha
commit
a791103069
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      doc/classes/Window.xml

+ 2 - 1
doc/classes/Window.xml

@@ -378,7 +378,8 @@
 			<return type="void" />
 			<param index="0" name="ratio" type="float" default="0.8" />
 			<description>
-				Popups the [Window] centered inside its parent [Window] and sets its size as a [param ratio] of parent's size.
+				If [Window] is embedded, popups the [Window] centered inside its embedder and sets its size as a [param ratio] of embedder's size.
+				If [Window] is a native window, popups the [Window] centered inside the screen of its parent [Window] and sets its size as a [param ratio] of the screen size.
 			</description>
 		</method>
 		<method name="popup_exclusive">