Closes #85328. Adds 'repositionOnScroll' prop to expression popovers (#88085)

This commit is contained in:
Oliver Gupte 2021-01-12 21:15:27 -08:00 committed by GitHub
parent e339018285
commit ed531bb4c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 0 deletions

View file

@ -30,6 +30,7 @@ export function PopoverExpression(props: Props) {
onClick={() => setPopoverOpen(true)}
/>
}
repositionOnScroll
>
{children}
</EuiPopover>

View file

@ -84,6 +84,7 @@ export const ForLastExpression = ({
ownFocus
display={display === 'fullWidth' ? 'block' : 'inlineBlock'}
anchorPosition={popupPosition ?? 'downLeft'}
repositionOnScroll
>
<div>
<ClosablePopoverTitle onClose={() => setAlertDurationPopoverOpen(false)}>

View file

@ -115,6 +115,7 @@ export const GroupByExpression = ({
ownFocus
display={display === 'fullWidth' ? 'block' : 'inlineBlock'}
anchorPosition={popupPosition ?? 'downRight'}
repositionOnScroll
>
<div>
<ClosablePopoverTitle onClose={() => setGroupByPopoverOpen(false)}>

View file

@ -104,6 +104,7 @@ export const OfExpression = ({
display={display === 'fullWidth' ? 'block' : 'inlineBlock'}
anchorPosition={popupPosition ?? 'downRight'}
zIndex={8000}
repositionOnScroll
>
<div>
<ClosablePopoverTitle onClose={() => setAggFieldPopoverOpen(false)}>

View file

@ -111,6 +111,7 @@ export const ThresholdExpression = ({
ownFocus
display={display === 'fullWidth' ? 'block' : 'inlineBlock'}
anchorPosition={popupPosition ?? 'downLeft'}
repositionOnScroll
>
<div>
<ClosablePopoverTitle onClose={() => setAlertThresholdPopoverOpen(false)}>

View file

@ -67,6 +67,7 @@ export const WhenExpression = ({
ownFocus
display={display === 'fullWidth' ? 'block' : 'inlineBlock'}
anchorPosition={popupPosition ?? 'downLeft'}
repositionOnScroll
>
<div>
<ClosablePopoverTitle onClose={() => setAggTypePopoverOpen(false)}>