Skip to content

Commit

Permalink
Fix flyout scrolling exception
Browse files Browse the repository at this point in the history
  • Loading branch information
breville committed Jul 16, 2022
1 parent 7de3f7b commit e83752b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/ui/block_space/flyout.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ Blockly.Flyout.prototype.getHeight = function() {
*/
Blockly.Flyout.prototype.setMetrics_ = function(yRatio) {
var metrics = this.getMetrics_();

// If the flyout is now hidden, don't do anything else.
if (metrics === null) {
return;
}

if (goog.isNumber(yRatio.y)) {
// TODO(bjordan+bbuchanan): needs to change?
this.blockSpace_.yOffsetFromView =
Expand Down

0 comments on commit e83752b

Please sign in to comment.