Skip to content

Dropdown content not taking the full width of the trigger #1507

Answered by benoitgrelard
raviteja83 asked this question in Help
Discussion options

You must be logged in to vote

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.

✌️

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@raviteja83
Comment options

@benoitgrelard
Comment options

@raviteja83
Comment options

@benoitgrelard
Comment options

@raviteja83
Comment options

Answer selected by raviteja83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants