Skip to content
Snippets Groups Projects
Commit cf838e11 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Show workspace before triggering resize

parent ea10066c
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,8 @@ class Blocks extends React.Component {
// @todo hack to resize blockly manually in case resize happened while hidden
if (this.props.isVisible) { // Scripts tab
window.dispatchEvent(new Event('resize'));
this.workspace.setVisible(true);
window.dispatchEvent(new Event('resize'));
this.workspace.toolbox_.refreshSelection();
} else {
this.workspace.setVisible(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment