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`;