Browse Source

Document how to resize a SubViewportContainer to avoid stretching

This closes #27534.

(cherry picked from commit f818a99d0b290319665f0cfb4f7024b451fd78aa)
Hugo Locurcio 5 years ago
parent
commit
469c1b5f5e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      doc/classes/ViewportContainer.xml

+ 1 - 0
doc/classes/ViewportContainer.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	</brief_description>
 	<description>
 	<description>
 		A [Container] node that holds a [Viewport], automatically setting its size.
 		A [Container] node that holds a [Viewport], automatically setting its size.
+		[b]Note:[/b] Changing a ViewportContainer's [member Control.rect_scale] will cause its contents to appear distorted. To change its visual size without causing distortion, adjust the node's margins instead (if it's not already in a container).
 	</description>
 	</description>
 	<tutorials>
 	<tutorials>
 	</tutorials>
 	</tutorials>