mirror of
https://github.com/google/blockly.git
synced 2026-01-11 19:07:08 +01:00
Merge pull request #2281 from BeksOmega/fixes/FlyoutScrollbarAnchors
Fixed Flyout Scrollbars Not Being Repositioned on Window Resize
This commit is contained in:
@@ -388,6 +388,10 @@ Blockly.Flyout.prototype.positionAt_ = function(width, height, x, y) {
|
||||
// Set the scrollbars origin to be the top left of the flyout.
|
||||
this.scrollbar_.setOrigin(x, y);
|
||||
this.scrollbar_.resize();
|
||||
// Set the position again so that if the metrics were the same (and the
|
||||
// resize failed) our position is still updated.
|
||||
this.scrollbar_.setPosition_(
|
||||
this.scrollbar_.position_.x, this.scrollbar_.position_.y);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user