mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Merge pull request #7631 from minrk/initial-collapse
fix initial collapsed state on load
This commit is contained in:
commit
c760c2af96
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user