From 79011135649b376303236786d41683a77ccc7bc6 Mon Sep 17 00:00:00 2001 From: YouWei Zhao Date: Sun, 8 Jul 2018 11:20:00 +0800 Subject: [PATCH] fix resize bug --- _server/editor_blockly.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_server/editor_blockly.js b/_server/editor_blockly.js index 86cc4461..75a0ed9b 100644 --- a/_server/editor_blockly.js +++ b/_server/editor_blockly.js @@ -248,10 +248,11 @@ var workspace = Blockly.inject(blocklyDiv,{ var onresize = function(e) { blocklyDiv.style.width = blocklyArea.offsetWidth + 'px'; blocklyDiv.style.height = blocklyArea.offsetHeight + 'px'; + Blockly.svgResize(workspace); }; window.addEventListener('resize', onresize, false); onresize(); -Blockly.svgResize(workspace); +//Blockly.svgResize(workspace); //Blockly.bindEventWithChecks_(workspace.svgGroup_,"wheel",workspace,function(e){}); document.getElementById('blocklyDiv').onmousewheel = function(e){