Skip to content

Commit

Permalink
only render visible blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpal committed Jul 29, 2021
1 parent ebec9f7 commit 0a01d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ui/block_space/block_space.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ Blockly.BlockSpace.prototype.clear = function() {
* Render all blocks this blockSpace.
*/
Blockly.BlockSpace.prototype.render = function() {
var renderList = this.getAllBlocks();
var renderList = this.getAllVisibleBlocks();
for (var x = 0, block; x < renderList.length; x++) {
block = renderList[x];
if (!block.getChildren().length) {
Expand Down

0 comments on commit 0a01d87

Please sign in to comment.