fix initial collapsed state on load

OutputArea.collapsed should only be assigned inside expand/collapse methods

setting `collapsed = false` when it actually is collapsed prevents expand from having any effect,
resulting in apparently invisible output.
This commit is contained in:
Min RK 2015-01-29 15:33:23 -08:00
parent 7ce360aa6b
commit a5218e0cae

View File

@ -908,9 +908,10 @@ define([
this.append_output(outputs[i]);
}
if (metadata.collapsed !== undefined) {
this.collapsed = metadata.collapsed;
if (metadata.collapsed) {
this.collapse();
} else {
this.expand();
}
}
if (metadata.scrolled !== undefined) {