mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Uses the ws scroll value when updating flyout (#4415)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user