mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Scroll to the procedure definition from the procedure call context menu
This commit is contained in:
@@ -860,7 +860,10 @@ Blockly.Blocks['procedures_callnoreturn'] = {
|
||||
var workspace = this.workspace;
|
||||
option.callback = function() {
|
||||
var def = Blockly.Procedures.getDefinition(name, workspace);
|
||||
def && def.select();
|
||||
if (def) {
|
||||
workspace.centerOnBlock(def.id);
|
||||
def.select();
|
||||
}
|
||||
};
|
||||
options.push(option);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user