Uses the ws scroll value when updating flyout (#4415)

This commit is contained in:
alschmiedt
2020-10-30 13:30:53 -07:00
committed by GitHub
parent 363095a7e5
commit 8eb794f30e
2 changed files with 2 additions and 2 deletions

View File

@@ -376,7 +376,7 @@ Blockly.HorizontalFlyout.prototype.reflowInternal_ = function() {
// is in the correct position relative to the new absolute edge (ie
// toolbox edge).
this.targetWorkspace.translate(
0, this.targetWorkspace.scrollY + flyoutHeight);
this.targetWorkspace.scrollX, this.targetWorkspace.scrollY + flyoutHeight);
}
// Record the height for .getMetrics_ and .position.

View File

@@ -385,7 +385,7 @@ Blockly.VerticalFlyout.prototype.reflowInternal_ = function() {
// is in the correct position relative to the new absolute edge (ie
// toolbox edge).
this.targetWorkspace.translate(
this.targetWorkspace.scrollX + flyoutWidth, 0);
this.targetWorkspace.scrollX + flyoutWidth, this.targetWorkspace.scrollY);
}
// Record the width for .getMetrics_ and .position.