Skip to content

Commit

Permalink
fix: reuse the 'bumpObjects' module in inject.js (#6121)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ authored May 6, 2022
1 parent a3a8436 commit df8349c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ const init = function(mainWorkspace) {
browserEvents.conditionalBind(window, 'resize', null, function() {
mainWorkspace.hideChaff(true);
common.svgResize(mainWorkspace);
goog.module.get('Blockly.bumpObjects')
.bumpTopObjectsIntoBounds(mainWorkspace);
bumpObjects.bumpTopObjectsIntoBounds(mainWorkspace);
});
mainWorkspace.setResizeHandlerWrapper(workspaceResizeHandler);

Expand Down

0 comments on commit df8349c

Please sign in to comment.