diff --git a/src/vs/workbench/browser/positronComponents/positronModalPopup/positronModalPopup.tsx b/src/vs/workbench/browser/positronComponents/positronModalPopup/positronModalPopup.tsx index 2076e223aa3..825a335f154 100644 --- a/src/vs/workbench/browser/positronComponents/positronModalPopup/positronModalPopup.tsx +++ b/src/vs/workbench/browser/positronComponents/positronModalPopup/positronModalPopup.tsx @@ -86,11 +86,10 @@ export interface PositronModalPopupProps { readonly height: number | 'min-content'; readonly minHeight?: number | 'auto'; readonly maxHeight?: number | 'none'; + readonly fixedHeight?: boolean; readonly focusableElementSelectors?: string; readonly keyboardNavigationStyle: KeyboardNavigationStyle; readonly onAccept?: () => void; - - yaba?: boolean; } /** @@ -121,9 +120,6 @@ export const PositronModalPopup = (props: PropsWithChildren { popupLayout.top = anchorY + anchorHeight + LAYOUT_OFFSET; - if (props.yaba) { + if (props.fixedHeight) { popupLayout.top = Math.min(popupLayout.top, documentHeight - layoutHeight - LAYOUT_MARGIN); } else { popupLayout.maxHeight = documentHeight - popupLayout.top - LAYOUT_MARGIN; @@ -262,7 +261,7 @@ export const PositronModalPopup = (props: PropsWithChildren { diff --git a/src/vs/workbench/browser/positronDataExplorer/components/dataExplorerPanel/components/addEditRowFilterModalPopup/addEditRowFilterModalPopup.tsx b/src/vs/workbench/browser/positronDataExplorer/components/dataExplorerPanel/components/addEditRowFilterModalPopup/addEditRowFilterModalPopup.tsx index f818353c9fa..6c4ee4ed419 100644 --- a/src/vs/workbench/browser/positronDataExplorer/components/dataExplorerPanel/components/addEditRowFilterModalPopup/addEditRowFilterModalPopup.tsx +++ b/src/vs/workbench/browser/positronDataExplorer/components/dataExplorerPanel/components/addEditRowFilterModalPopup/addEditRowFilterModalPopup.tsx @@ -753,13 +753,13 @@ export const AddEditRowFilterModalPopup = (props: AddEditRowFilterModalPopupProp return (