Skip to content

Commit bdaf044

Browse files
authored
Agents web: fix layout resize (#318478)
1 parent 4b509f7 commit bdaf044

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/vs/sessions/browser/parts/mobile/mobileSessionsPart.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export class MobileSessionsPart extends SessionsPart {
5151
this._lastLayout = { width, height, top, left };
5252

5353
// Full dimensions - no card margins or session-bar subtraction.
54-
this.layoutContents(width, height);
54+
const { contentSize } = this.layoutContents(width, height);
55+
this._gridWidget?.layout(contentSize.width, contentSize.height, top, left);
5556
Part.prototype.layout.call(this, width, height, top, left);
5657
}
5758
}

src/vs/sessions/browser/parts/sessionsPart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class SessionsPart extends Part {
5454
static readonly BORDER_WIDTH = 1;
5555

5656
/** Internal grid that hosts the part's session views. */
57-
private _gridWidget: SerializableGrid<SessionView> | undefined;
57+
protected _gridWidget: SerializableGrid<SessionView> | undefined;
5858

5959
/** Lazily-created progress bar shown at the top of the content area. */
6060
private _progressBar: ProgressBar | undefined;

0 commit comments

Comments
 (0)