I’m completely stumped on this. I rebuilt the accordion component on my website, and for some strange reason, the div for the toggle won’t adjust to the viewport width. But everything elce is behaving as expected.
I tried taking it out of the container to see if that was the issue, but no dice. I also tried turning everything into a block element and using a flexbox as the wrapper, and still nothing. Any suggestions would be much appreciated.
Here is my site Read-Only: LINK
Hi there,
Here’s how to make your dropdown fill its parent element’s width.
First, for the parent dropdown:
- Select the parent dropdown element and give it a class
- Go to Style panel > Size
- Set Width to 100%
For the dropdown toggle to fill the horizontal space:
- Select the dropdown toggle and give it a class
- Go to Style panel > Layout
- Set Display to flexbox
- Set Align to center
These adjustments will ensure your dropdown properly fills the viewport width.
Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.
Unfortunately, this didn’t work.
OK. So I’ve narrowed it down to the animation. Apparently, when you use the Size animation vertically, it causes an odd glitch horizontally. Switched over to Hide/Show, and it seemed to fix it.