mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
fix: switch most remaining render calls to queueRender (#7024)
* chore: remove render call from procedure blocks * chore: have workspace queue renders when unhiding * chore: remove forced rendering from flyouts * chore: change mutators to use queueing * chore: change shadows to use queueing * chore: add comments about icon rendering
This commit is contained in:
@@ -756,9 +756,6 @@ const PROCEDURE_CALL_COMMON = {
|
||||
this.quarkConnections_ = {};
|
||||
this.quarkIds_ = [];
|
||||
}
|
||||
// Switch off rendering while the block is rebuilt.
|
||||
const savedRendered = this.rendered;
|
||||
this.rendered = false;
|
||||
// Update the quarkConnections_ with existing connections.
|
||||
for (let i = 0; i < this.arguments_.length; i++) {
|
||||
const input = this.getInput('ARG' + i);
|
||||
@@ -798,11 +795,6 @@ const PROCEDURE_CALL_COMMON = {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Restore rendering and show the changes.
|
||||
this.rendered = savedRendered;
|
||||
if (this.rendered) {
|
||||
this.render();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Modify this block to have the correct number of arguments.
|
||||
|
||||
Reference in New Issue
Block a user