Commit e095147b authored by Neil Fraser's avatar Neil Fraser

Fix alignment of blocks tab in Code demo.

parent 7da8998d
...@@ -357,9 +357,9 @@ Code.init = function() { ...@@ -357,9 +357,9 @@ Code.init = function() {
el.style.width = (2 * bBox.width - el.offsetWidth) + 'px'; el.style.width = (2 * bBox.width - el.offsetWidth) + 'px';
} }
// Make the 'Blocks' tab line up with the toolbox. // Make the 'Blocks' tab line up with the toolbox.
if (Blockly.Toolbox.width) { if (Blockly.mainWorkspace.toolbox_.width) {
document.getElementById('tab_blocks').style.minWidth = 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. // Account for the 19 pixel margin and on each side.
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment