-
Environment Information
Please provide a reproduction of the bug in a codepen:https://codepen.io/rafaelki/pen/KKgdPOj Actual behavior:The width of the callout passed in the "styles" property gets overwritten, so there is not way to set the width of the callout to 'auto' in order to display long options. Expected behavior:I would expect that the properties that I pass to the component take effect, overwritting the default behaviour. Priorities and help requested:Are you willing to submit a PR to fix? No Requested priority: Normal |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Actually with dropdown since there is coordination between the dropdown and the callout, the callout width is controlled via the dropdownWidth prop. See this line from Dropdown for reference You can set the dropdownWidth prop on DropDown to "auto" Here's an updated codePen |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @JustSlone |
Beta Was this translation helpful? Give feedback.
Actually with dropdown since there is coordination between the dropdown and the callout, the callout width is controlled via the dropdownWidth prop.
See this line from Dropdown for reference
fluentui/packages/react/src/components/Dropdown/Dropdown.base.tsx
Line 635 in 24d2007
You can set the dropdownWidth prop on DropDown to "auto"
Here's an updated codePen