mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Corrections to warning bubbling.
This commit is contained in:
@@ -1251,12 +1251,12 @@ Blockly.BlockSvg.prototype.setWarningText = function(text, opt_id) {
|
||||
}
|
||||
|
||||
// Bubble up through block's parents to add a warning on any collapsed block.
|
||||
var parent = this.getParent();
|
||||
var parent = this.getSurroundParent();
|
||||
while (parent) {
|
||||
if (parent.isCollapsed()) {
|
||||
parent.setWarningText(text, this.id);
|
||||
parent.setWarningText(text, 'collapsed ' + this.id + ' ' + id);
|
||||
}
|
||||
parent = parent.getParent();
|
||||
parent = parent.getSurroundParent();
|
||||
}
|
||||
|
||||
var changedState = false;
|
||||
|
||||
Reference in New Issue
Block a user