mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
Misc compiler warnings. (#3172)
* Fix misc compiler warnings. Use ws.getToolbox() instead of ws.toolbox_
This commit is contained in:
@@ -379,9 +379,9 @@ Code.init = function() {
|
||||
el.style.width = (2 * bBox.width - el.offsetWidth) + 'px';
|
||||
}
|
||||
// Make the 'Blocks' tab line up with the toolbox.
|
||||
if (Code.workspace && Code.workspace.toolbox_.width) {
|
||||
if (Code.workspace && Code.workspace.getToolbox().width) {
|
||||
document.getElementById('tab_blocks').style.minWidth =
|
||||
(Code.workspace.toolbox_.width - 38) + 'px';
|
||||
(Code.workspace.getToolbox().width - 38) + 'px';
|
||||
// Account for the 19 pixel margin and on each side.
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user