Merge pull request #7631 from minrk/initial-collapse

fix initial collapsed state on load
This commit is contained in:
Matthias Bussonnier 2015-01-30 12:00:48 +01:00
commit c760c2af96

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) {