Remove Firefox fix for avoiding dropdown scrollbars as it no longer repros (#3560)

This commit is contained in:
Sam El-Husseini
2020-01-07 16:05:08 -08:00
committed by GitHub
parent f10c48648e
commit 7ac83a318b

View File

@@ -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_ =