mirror of
https://github.com/google/blockly.git
synced 2026-01-11 19:07:08 +01:00
Merge pull request #2282 from BeksOmega/fixes/ScrollingOnResize
Fixed Horizontal Scrolling on Window Resize for Simple Toolboxes
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user