-
JEAHYUN
Hello,
I have a question about the accordion block created with GenerateBlocks.
Normally, when clicking an accordion toggle, the accordion title remains fixed while the content expands downward — which works as expected.
However, when the accordion item contains a long amount of content, an annoying issue sometimes occurs:
When the accordion expands, the viewport suddenly shifts, and the accordion content area moves completely out of view toward the top of the screen.
I’d really like to find a solution for this problem.
To help illustrate the issue, here’s an example from my site:
1. When clicking the first accordion toggle in the middle of the page, the content expands normally.
2. But when clicking the second accordion toggle right after, the viewport jumps and displays an unrelated section of the page.Thank you for your help and guidance on this.
-
Hi there,
It’s inevitable as this is how the browser calculates the height.
A workaround is to activate the Keep multiple items open option for the Accordion block.
-
JEAHYUN
Thank you so much!!
-
You are welcome 🙂
- You must be logged in to reply to this topic.