have max height for action list (#297722)

This commit is contained in:
Sandeep Somavarapu
2026-02-25 18:52:02 +01:00
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;
}