diff --git a/core/workspace_svg.js b/core/workspace_svg.js index 4899c03ca..d7d78793f 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -1140,6 +1140,7 @@ Blockly.WorkspaceSvg.prototype.getBlocksBoundingBox = function() { * Clean up the workspace by ordering all the blocks in a column. */ Blockly.WorkspaceSvg.prototype.cleanUp = function() { + this.setResizesEnabled(false); Blockly.Events.setGroup(true); var topBlocks = this.getTopBlocks(true); var cursorY = 0; @@ -1151,8 +1152,7 @@ Blockly.WorkspaceSvg.prototype.cleanUp = function() { block.getHeightWidth().height + Blockly.BlockSvg.MIN_BLOCK_Y; } Blockly.Events.setGroup(false); - // Fire an event to allow scrollbars to resize. - this.resizeContents(); + this.setResizesEnabled(true); }; /**