Is it normal for Groups to leave gaps in an Accordion UI?

test.rp (88.7 KB)
I encountered an issue while creating an accordion UI and I’m wondering if this is a bug or if I’m doing something wrong.

  • Both buttons A and B can expand and collapse their respective sub-contents.
  1. Click button A to collapse sub-content A.
  2. Click button B to collapse sub-content B.
  3. Click button B again to expand sub-content B.
  4. Click button A to expand sub-content A.

At this point, a gap equivalent to the size of sub-content B-1 appears, and group A does not shift back to its proper position.

Question: I know this can be avoided by changing the sub-contents to Dynamic Panels, but is it normal for this phenomenon to occur when using regular groups?

*.


1.

2.

3.

4. ???

I think in step 3, when B is expanded and pushes everything below, it is also pushing some of the widgets that are in group A. You should be able to resolve this by putting A into a dynamic panel and putting B into a dynamic panel and hiding and showing the panels instead of groups.

Thank you for the kind response. I didn’t realize this couldn’t be resolved using groups. I’ll follow your advice and use dynamic panels instead. Thanks again for your help!