Merge branch 'docs/extend-gui-size-and-anchors-page'

This commit is contained in:
Nathan Lovato
2020-10-06 15:17:20 -06:00
2 changed files with 9 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -63,3 +63,12 @@ a TextureRect can be centered in its parent:
Setting each anchor to 0.5 moves the reference point for the margins to
the center of its parent. From there, we set negative margins so that
the control gets its natural size.
Layout Presets
--------------
Instead of manually adjusting the margin and anchor values, you can use the
toolbar's Layout menu, above the viewport. Besides centering, it gives you many
options to align and resize control nodes.
.. image:: img/layout_dropdown_menu.png