mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
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:
parent
7ce360aa6b
commit
a5218e0cae
@ -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