mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-11 09:09:46 +01:00
make sure to get current window for action lists (#245288)
make sure we get current window
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user