Mutator flyout scrollbar fix (#4711)

This commit is contained in:
alschmiedt
2021-03-18 16:08:06 -07:00
committed by GitHub
parent 7fdf579985
commit 2cbbaa666a

View File

@@ -241,7 +241,8 @@ Blockly.Mutator.prototype.resizeBubble_ = function() {
var height = workspaceSize.height + doubleBorderWidth * 3;
var flyout = this.workspace_.getFlyout();
if (flyout) {
var flyoutScrollMetrics = this.workspace_.getMetricsManager().getScrollMetrics();
var flyoutScrollMetrics = flyout.getWorkspace().getMetricsManager()
.getScrollMetrics();
height = Math.max(height, flyoutScrollMetrics.height + 20);
width += flyout.getWidth();
}