1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Remove console.log debug from tray

This commit is contained in:
Nick O'Leary 2016-05-06 17:20:25 +01:00
parent ea41a0e842
commit feeba77f16

View File

@ -100,7 +100,6 @@ RED.tray = (function() {
$("#header-shade").show();
$("#editor-shade").show();
RED.sidebar.config.disable();
console.log("init width",el.width())
tray.preferredWidth = Math.max(el.width(),500);
body.css({"minWidth":tray.preferredWidth-40});
@ -113,13 +112,9 @@ console.log("init width",el.width())
el.width(tray.preferredWidth);
}
console.log("preferred width",tray.preferredWidth)
tray.width = el.width();
if (tray.width > $("#editor-stack").position().left-8) {
tray.width = Math.max(0/*tray.preferredWidth*/,$("#editor-stack").position().left-8);
console.log("setting width on create",tray.width);
el.width(tray.width);
}