fixed when block palette scroll up a little ()

every time the workspace is rerendered.
This commit is contained in:
Yu Wang 2017-04-21 04:21:24 +08:00 committed by Ray Schamp
parent 11c9a4af20
commit 06fa507dbb

View file

@ -208,7 +208,7 @@ Blockly.VerticalFlyout.prototype.getMetrics_ = function() {
viewWidth: viewWidth,
contentHeight: optionBox.height * this.workspace_.scale + 2 * this.MARGIN,
contentWidth: optionBox.width * this.workspace_.scale + 2 * this.MARGIN,
viewTop: -this.workspace_.scrollY,
viewTop: -this.workspace_.scrollY + optionBox.y,
viewLeft: -this.workspace_.scrollX,
contentTop: optionBox.y,
contentLeft: optionBox.x,