Skip to content

Commit

Permalink
attach to right
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Nov 23, 2023
1 parent 6825bb0 commit 8642e05
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ export function FieldPicker<T extends FieldOptionValue = FieldOptionValue>(
selectedOptions={selectedOptions}
singleSelection={SINGLE_SELECTION_AS_TEXT_PROPS}
truncationProps={MIDDLE_TRUNCATION_PROPS}
inputPopoverProps={{ panelMinWidth: calculateWidthFromCharCount(maxLabelLength) }}
inputPopoverProps={{
panelMinWidth: calculateWidthFromCharCount(maxLabelLength),
anchorPosition: 'downRight',
}}
onChange={(choices) => {
if (choices.length === 0) {
onDelete?.();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const BreakdownFieldSelector = ({
aria-label={i18n.translate('unifiedHistogram.breakdownFieldSelectorAriaLabel', {
defaultMessage: 'Break down by',
})}
inputPopoverProps={{ panelMinWidth }}
inputPopoverProps={{ panelMinWidth, anchorPosition: 'downRight' }}
singleSelection={SINGLE_SELECTION}
options={fieldOptions}
selectedOptions={selectedFields}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class PhraseValueInputUI extends PhraseSuggestorUI<PhraseValueInputProps> {
data-test-subj="filterParamsComboBox phraseParamsComboxBox"
singleSelection={SINGLE_SELECTION_AS_TEXT_PROPS}
truncationProps={MIDDLE_TRUNCATION_PROPS}
inputPopoverProps={{ panelMinWidth }}
inputPopoverProps={{ panelMinWidth, anchorPosition: 'downRight' }}
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class PhrasesValuesInputUI extends PhraseSuggestorUI<PhrasesValuesInputProps> {
data-test-subj="filterParamsComboBox phrasesParamsComboxBox"
isDisabled={disabled}
truncationProps={MIDDLE_TRUNCATION_PROPS}
inputPopoverProps={{ panelMinWidth }}
inputPopoverProps={{ panelMinWidth, anchorPosition: 'downRight' }}
/>
);
}
Expand Down

0 comments on commit 8642e05

Please sign in to comment.