mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Merge pull request #557 from drigz/bugfix/headless-render
Don't call SVG methods on headless workspaces
This commit is contained in:
commit
e0068cab41
1 changed files with 4 additions and 4 deletions
|
@ -355,11 +355,11 @@ Blockly.Xml.domToBlock = function(xmlBlock, workspace) {
|
|||
}
|
||||
}, 1);
|
||||
}
|
||||
topBlock.updateDisabled();
|
||||
// Allow the scrollbars to resize and move based on the new contents.
|
||||
// TODO(@picklesrus): #387. Remove when domToBlock avoids resizing.
|
||||
Blockly.resizeSvgContents(workspace);
|
||||
}
|
||||
topBlock.updateDisabled();
|
||||
// Allow the scrollbars to resize and move based on the new contents.
|
||||
// TODO(@picklesrus): #387. Remove when domToBlock avoids resizing.
|
||||
Blockly.resizeSvgContents(workspace);
|
||||
} finally {
|
||||
Blockly.Events.enable();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue