From e095147b11ac7749151b9b8d5443e1a41d8f439f Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Wed, 17 Dec 2014 20:25:14 -0800 Subject: [PATCH] Fix alignment of blocks tab in Code demo. --- demos/code/code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/code/code.js b/demos/code/code.js index 4f94a3d55..8ae2fe359 100644 --- a/demos/code/code.js +++ b/demos/code/code.js @@ -357,9 +357,9 @@ Code.init = function() { el.style.width = (2 * bBox.width - el.offsetWidth) + 'px'; } // Make the 'Blocks' tab line up with the toolbox. - if (Blockly.Toolbox.width) { + if (Blockly.mainWorkspace.toolbox_.width) { document.getElementById('tab_blocks').style.minWidth = - (Blockly.Toolbox.width - 38) + 'px'; + (Blockly.mainWorkspace.toolbox_.width - 38) + 'px'; // Account for the 19 pixel margin and on each side. } };