Merge pull request #2282 from BeksOmega/fixes/ScrollingOnResize

Fixed Horizontal Scrolling on Window Resize for Simple Toolboxes
This commit is contained in:
Rachel Fenichel
2019-02-11 11:19:49 -08:00
committed by GitHub

View File

@@ -103,8 +103,8 @@ Blockly.HorizontalFlyout.prototype.getMetrics_ = function() {
contentWidth: (optionBox.width + 2 * this.MARGIN) * this.workspace_.scale,
viewTop: -this.workspace_.scrollY,
viewLeft: -this.workspace_.scrollX,
contentTop: optionBox.y,
contentLeft: optionBox.x,
contentTop: 0,
contentLeft: 0,
absoluteTop: absoluteTop,
absoluteLeft: absoluteLeft
};