From e492858569c0ec80c514305d954617b8bd453efe Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Thu, 21 Jan 2016 16:15:03 -0500 Subject: [PATCH] Fixing UI.js references to window.gDW, gDH --- src/editor/ui/UI.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor/ui/UI.js b/src/editor/ui/UI.js index 3e3aa2d..183e9ef 100644 --- a/src/editor/ui/UI.js +++ b/src/editor/ui/UI.js @@ -58,7 +58,7 @@ export default class UI { /** Tweak some elements depending on aspect ratio */ static aspectRatioAdjustment () { - var aspect = window.getDocumentWidth() / window.getDocumentHeight(); + var aspect = getDocumentWidth() / getDocumentHeight(); if (aspect > 1.45) { // Nudge sprite list right a bit and the pages list left a bit gn('library').style.left = '3vw'; @@ -282,8 +282,8 @@ export default class UI { ti.oldvalue = ti.value; if (isAndroid) { AndroidInterface.scratchjr_setsoftkeyboardscrolllocation( - ti.getBoundingClientRect().top * window.devicePixelRatio, - ti.getBoundingClientRect().bottom * window.devicePixelRatio + ti.getBoundingClientRect().top * devicePixelRatio, + ti.getBoundingClientRect().bottom * devicePixelRatio ); AndroidInterface.scratchjr_forceShowKeyboard(); }