From 020a469f3b28f89c908d8cb577c535df81215813 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 19 Dec 2018 10:05:09 +0000 Subject: [PATCH] Fix visual jump when opening Comment editor on Safari Part of #2008 --- .../node_modules/@node-red/editor-client/src/js/ui/tray.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tray.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tray.js index 2fdbb2ac8..40199645f 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tray.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tray.js @@ -140,11 +140,12 @@ RED.tray = (function() { // tray.body.parent().width(Math.min($("#editor-stack").position().left-8,tray.width)); + + $("#main-container").scrollLeft(0); el.css({ right: -(el.width()+10)+"px", transition: "right 0.25s ease" }); - $("#workspace").scrollLeft(0); handleWindowResize(); openingTray = true; setTimeout(function() {