From 2cdaaf101773ff585f1e72d40399026a4ae32983 Mon Sep 17 00:00:00 2001 From: Nathan Dinsmore Date: Mon, 16 Jun 2014 17:07:23 -0400 Subject: [PATCH] Preserved position of top left of scripting area when zooming --- src/uiwidgets/ScriptsPane.as | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uiwidgets/ScriptsPane.as b/src/uiwidgets/ScriptsPane.as index c39b76f..01bf933 100644 --- a/src/uiwidgets/ScriptsPane.as +++ b/src/uiwidgets/ScriptsPane.as @@ -434,6 +434,8 @@ return true; // xxx disable this check for now; it was causing confusion at Scra } public function setScale(newScale:Number):void { + x *= newScale / scaleX; + y *= newScale / scaleY; newScale = Math.max(1/6, Math.min(newScale, 6.0)); scaleX = scaleY = newScale; updateSize();