Dropdown content not taking the full width of the trigger #1507
-
Are there any limitations for the width the dropdown content can take? The content is not taking the full width of trigger. Anything that can be done? I have set no width constraint on the dropdown content. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi @raviteja83, There are no "limitations", but no constraints either. If you wanted to make them match, you could either do it with css, by applying the same width to the trigger and the content, or dynamically by not applying a specific width to the trigger, but rather measuring it and applying that measured width to the content. Hope this helps. ✌️ |
Beta Was this translation helpful? Give feedback.
Hi @raviteja83,
There are no "limitations", but no constraints either.
The content width will simply be the natural width, so it will depend on the width of your larger item, paddings, etc, like a regular element.
If you wanted to make them match, you could either do it with css, by applying the same width to the trigger and the content, or dynamically by not applying a specific width to the trigger, but rather measuring it and applying that measured width to the content.
Hope this helps.
✌️