mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Fix flyout labels causing flyout scrolling issues (#1301)
This commit is contained in:
committed by
picklesrus
parent
f34a2c2ed4
commit
6e3a2b7218
@@ -530,8 +530,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user