From b61f73a7fa4558f33b91940b0d306ade2b77128a Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Mon, 16 Oct 2017 09:26:19 -0400 Subject: [PATCH] Remove manual refresh for scratch-blocks workspace --- src/containers/blocks.jsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx index 7a2a4d908..c8ffb1a79 100644 --- a/src/containers/blocks.jsx +++ b/src/containers/blocks.jsx @@ -85,12 +85,10 @@ class Blocks extends React.Component { } // @todo hack to resize blockly manually in case resize happened while hidden - // @todo hack to reload the workspace due to gui bug #413 if (this.props.isVisible) { // Scripts tab this.workspace.setVisible(true); this.props.vm.refreshWorkspace(); window.dispatchEvent(new Event('resize')); - this.workspace.toolbox_.refreshSelection(); } else { this.workspace.setVisible(false); } @@ -195,7 +193,6 @@ class Blocks extends React.Component { const dom = this.ScratchBlocks.Xml.textToDom(data.xml); this.ScratchBlocks.Xml.domToWorkspace(dom, this.workspace); this.ScratchBlocks.Events.enable(); - this.workspace.toolbox_.refreshSelection(); if (this.props.vm.editingTarget && this.state.workspaceMetrics[this.props.vm.editingTarget.id]) { const {scrollX, scrollY, scale} = this.state.workspaceMetrics[this.props.vm.editingTarget.id]; -- GitLab