mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Fix flyout labels causing flyout scrolling issues (#1301)
This commit is contained in:
parent
b033c8d3ab
commit
9ce71d1099
1 changed files with 3 additions and 2 deletions
|
@ -620,8 +620,9 @@ Blockly.Flyout.prototype.clearOldBlocks_ = function() {
|
|||
}
|
||||
}
|
||||
// Delete any background buttons from a previous showing.
|
||||
for (var j = 0, rect; rect = this.backgroundButtons_[j]; j++) {
|
||||
goog.dom.removeNode(rect);
|
||||
for (var j = 0; j < this.backgroundButtons_.length; j++) {
|
||||
var rect = this.backgroundButtons_[j];
|
||||
if (rect) goog.dom.removeNode(rect);
|
||||
}
|
||||
this.backgroundButtons_.length = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue