mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-11 13:38:50 -04:00
fixed when block palette scroll up a little (#868)
every time the workspace is rerendered.
This commit is contained in:
parent
11c9a4af20
commit
06fa507dbb
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue