From 7ac83a318b4b7cbea03ac1c495aff7729d25e6b4 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Tue, 7 Jan 2020 16:05:08 -0800 Subject: [PATCH] Remove Firefox fix for avoiding dropdown scrollbars as it no longer repros (#3560) --- core/widgetdiv.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/widgetdiv.js b/core/widgetdiv.js index 1b7d5bcc4..326ee0cff 100644 --- a/core/widgetdiv.js +++ b/core/widgetdiv.js @@ -87,11 +87,7 @@ Blockly.WidgetDiv.show = function(newOwner, rtl, dispose) { Blockly.WidgetDiv.hide(); Blockly.WidgetDiv.owner_ = newOwner; Blockly.WidgetDiv.dispose_ = dispose; - // Temporarily move the widget to the top of the screen so that it does not - // cause a scrollbar jump in Firefox when displayed. - var xy = Blockly.utils.style.getViewportPageOffset(); var div = Blockly.WidgetDiv.DIV; - div.style.top = xy.y + 'px'; div.style.direction = rtl ? 'rtl' : 'ltr'; div.style.display = 'block'; Blockly.WidgetDiv.rendererClassName_ =