From 469c1b5f5eb277dfecb507b4ab623dec062d7c87 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 14 Jun 2020 15:25:29 +0200 Subject: [PATCH] Document how to resize a SubViewportContainer to avoid stretching This closes #27534. (cherry picked from commit f818a99d0b290319665f0cfb4f7024b451fd78aa) --- doc/classes/ViewportContainer.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/ViewportContainer.xml b/doc/classes/ViewportContainer.xml index 35fc18346e2..83bfea54211 100644 --- a/doc/classes/ViewportContainer.xml +++ b/doc/classes/ViewportContainer.xml @@ -5,6 +5,7 @@ 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).