mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-15 00:14:20 +01:00
have max height for action list (#297722)
This commit is contained in:
committed by
GitHub
parent
b0c071d6c3
commit
42af80dd46
@@ -787,7 +787,8 @@ export class ActionList<T> extends Disposable {
|
||||
availableHeight = widgetTop > 0 ? windowHeight - widgetTop - padding : windowHeight * 0.7;
|
||||
}
|
||||
|
||||
const maxHeight = Math.max(availableHeight, this._actionLineHeight * 3 + filterHeight);
|
||||
const viewportMaxHeight = Math.floor(targetWindow.innerHeight * 0.4);
|
||||
const maxHeight = Math.min(Math.max(availableHeight, this._actionLineHeight * 3 + filterHeight), viewportMaxHeight);
|
||||
const height = Math.min(listHeight + filterHeight, maxHeight);
|
||||
return height - filterHeight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user