Skip to content

Commit

Permalink
[shell] preserve last visible view container state
Browse files Browse the repository at this point in the history
otherwise collapsed view containers are not restored

Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Aug 2, 2019
1 parent d499c7d commit a851786
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/browser/view-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ export class ViewContainer extends BaseWidget implements StatefulWidget, Applica
protected lastVisibleState: ViewContainer.State | undefined;

storeState(): ViewContainer.State {
if (!this.isVisible && this.lastVisibleState) {
return this.lastVisibleState;
}
const parts = this.getParts();
const availableSize = this.containerLayout.getAvailableSize();
const orientation = this.orientation;
Expand Down

0 comments on commit a851786

Please sign in to comment.