Misc compiler warnings. (#3172)

* Fix misc compiler warnings. Use ws.getToolbox() instead of ws.toolbox_
This commit is contained in:
Sam El-Husseini
2019-10-07 11:06:56 -07:00
committed by GitHub
parent 608ce7b93c
commit 2ac4149d98
18 changed files with 62 additions and 59 deletions

View File

@@ -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.
}
};