mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Fix highlight being eclipsed by other blocks.
This commit is contained in:
@@ -1413,7 +1413,12 @@ Blockly.BlockSvg.prototype.addSelect = function() {
|
||||
Blockly.addClass_(/** @type {!Element} */ (this.svgGroup_),
|
||||
'blocklySelected');
|
||||
// Move the selected block to the top of the stack.
|
||||
this.svgGroup_.parentNode.appendChild(this.svgGroup_);
|
||||
var block = this;
|
||||
do {
|
||||
var root = block.getSvgRoot();
|
||||
root.parentNode.appendChild(root);
|
||||
block = block.getParent();
|
||||
} while (block);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user