We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5df1ca3 commit d5af2a2Copy full SHA for d5af2a2
1 file changed
src/vs/base/browser/ui/grid/grid.ts
@@ -698,13 +698,19 @@ export class View implements IView {
698
}
699
700
layout(width: number, height: number, orientation: Orientation): void {
701
- if (!this.visible) {
+ if (!this.visible && this.orientation === orientation) {
702
return;
703
704
705
- this.view.layout(width, height, orientation);
706
- this.width = width;
707
- this.height = height;
+
+ if (this.visible) {
708
+ this.view.layout(width, height, orientation);
709
710
+ this.width = width;
711
+ this.height = height;
712
+ }
713
714
this.orientation = orientation;
715
716
0 commit comments