How can I fix height of the popover for Picker & Combobox #6605
-
Setting height of the Spectrum Combobox dropdown #6500 Referencing the above discussion Can we handle it in the way below?? Pass another prop Pass it as the height to the popover Code with the changes: //combobox.tsx
// .... prev code
let {
menuTrigger = 'input',
shouldFlip = true,
direction = 'bottom',
align = 'start',
isQuiet,
loadingState,
onLoadMore,
allowsCustomValue,
menuWidth: customMenuWidth,
menuHeight: customMenuHeight,
name,
formValue = 'text'
} = props
//.... remaining
<Popover
state={state}
UNSAFE_style={{...style, height:customMenuHeight}}
//.... rest of the code
/> If not, can suggest a better/best way to handle it |
Beta Was this translation helpful? Give feedback.
Answered by
reidbarber
Jun 24, 2024
Replies: 1 comment 1 reply
-
I take it you are forking, copying, or patch-packaging for your use case. If so, that looks correct, but you may want to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
NarendraKuruva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I take it you are forking, copying, or patch-packaging for your use case. If so, that looks correct, but you may want to use
maxHeight
instead ofheight
.