From 0e333c267aa2ea042aa3128cbdaaf930dce66326 Mon Sep 17 00:00:00 2001 From: Justin Chen <54879025+justschen@users.noreply.github.com> Date: Tue, 1 Apr 2025 14:39:56 -0700 Subject: [PATCH] make sure to get current window for action lists (#245288) make sure we get current window --- src/vs/platform/actionWidget/browser/actionList.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/platform/actionWidget/browser/actionList.ts b/src/vs/platform/actionWidget/browser/actionList.ts index 0e368f31a2f..ff973d299fe 100644 --- a/src/vs/platform/actionWidget/browser/actionList.ts +++ b/src/vs/platform/actionWidget/browser/actionList.ts @@ -271,7 +271,7 @@ export class ActionList extends Disposable { } const maxVhPrecentage = 0.7; - const height = Math.min(heightWithHeaders, this._layoutService.mainContainerDimension.height * maxVhPrecentage); + const height = Math.min(heightWithHeaders, this._layoutService.getContainer(dom.getWindow(this.domNode)).clientHeight * maxVhPrecentage); this._list.layout(height, maxWidth); this.domNode.style.height = `${height}px`;