make sure to get current window for action lists (#245288)

make sure we get current window
This commit is contained in:
Justin Chen
2025-04-01 14:39:56 -07:00
committed by GitHub
parent 9c34a9914e
commit 0e333c267a
@@ -271,7 +271,7 @@ export class ActionList<T> 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`;