# Page height not reducing when groups collapse

**URL:** <https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566>\
**Category:** Responsiveness\
**Created:** [May 10, 2021, 5:28pm UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566 "2021-05-10T17:28:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben12](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@ben12](https://forum.bubble.io/u/ben12)\
**Post date:** [May 10, 2021, 5:28pm UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/1 "2021-05-10T17:28:52Z")

</div>

Hello all,

I have successfully set up some groups to show/ hide correctly and they collapse properly relative to eachother.

The issue I have is that when these groups are collapsing, they are creating empty space on the page at the bottom of all my groups.

Any ideas why this would be happening?

![ezgif.com-gif-maker](https://us1.discourse-cdn.com/bubble/original/3X/c/8/c84da3c8d0d4947b48eb9884375a98ed5b6f7b93.gif)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 10, 2021, 5:50pm UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/2 "2021-05-10T17:50:37Z")

</div>

I’m guessing you’ve got all your groups overlapping on the page (i.e. they are all occupying the same space in the editor).

You need to ‘stack’ your groups, one above the other (without any overlap, not even a single pixel) in order for the page to dynamically resize after a larger groups is hidden.

---

<div class="post-metadata">

**Author:** ![StarrK\_Designs](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/starrk_designs/32/87277_2.png) [@StarrK\_Designs](https://forum.bubble.io/u/StarrK_Designs)\
**Post date:** [May 10, 2021, 6:10pm UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/3 "2021-05-10T18:10:03Z")

</div>

@adamhholmes is exactly correct. It can be very frustrating if you have a single-page app as your page can get very very long.

---

<div class="post-metadata">

**Author:** ![aj11](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aj11/32/118613_2.png) [@aj11](https://forum.bubble.io/u/aj11)\
**Post date:** [May 10, 2021, 6:42pm UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/4 "2021-05-10T18:42:43Z")

</div>

@adamhholmes @StarrK_Designs That is one way, but it is not at all necessary and in my experience becomes unmanageable in the editor if you have a large one page app.

@ben12 You can stack your groups, or you can layer them using the method below.

Instead of stacking, you can layer your groups on top of one another, as long as the groups are all of identical height. So every “page” of your one page app should be a group of standard height that fits perfectly on top of all the other pages. The standard height should be higher than any of your content will be. For example, in my app, my standard “page” group height is 4020px, my tallest page’s content is only about 2000px in the editor. Make sure only one if these “page” groups is visible at a time while your app is being used.

Now you’ll still have the problem of each page having different amounts of content and needing to be different sizes other than the standard size. This is solved by adding “resize” groups at the bottom of each “page” group that go from the bottom of each page all the way up to the bottom of the “page” group’s content (with a little margin as desired). The “resize” groups should be set to not visible and collapse when hidden.

---

<div class="post-metadata">

**Author:** ![StarrK\_Designs](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/starrk_designs/32/87277_2.png) [@StarrK\_Designs](https://forum.bubble.io/u/StarrK_Designs)\
**Post date:** [May 10, 2021, 6:44pm UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/5 "2021-05-10T18:44:56Z")

</div>

@aj11 I’ve tried building that way and sometimes it works and sometimes it doesn’t. Unfortunately, that isn’t a good thing for my clients which is why I avoid it.

---

<div class="post-metadata">

**Author:** ![ben12](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@ben12](https://forum.bubble.io/u/ben12)\
**Post date:** [May 10, 2021, 7:01pm UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/6 "2021-05-10T19:01:49Z")

</div>

Yes they are already all stacked - see gif below, I will check to see if there is 1 pixel overlapping somewhere and report back

![ezgif.com-gif-maker (1)](https://us1.discourse-cdn.com/bubble/original/3X/3/3/3360f4601300bd63ad03deba151ddde562dff232.gif)

---

<div class="post-metadata">

**Author:** ![ben12](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@ben12](https://forum.bubble.io/u/ben12)\
**Post date:** [May 11, 2021, 10:39am UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/7 "2021-05-11T10:39:28Z")

</div>

OK I have checked and there are no overlapping groups so back to square one - any help would be much appreciated and happy to pay someone £20 to solve it for me via video.

Thanks

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 11, 2021, 10:45am UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/8 "2021-05-11T10:45:09Z")

</div>

If you want to share a read only link to your editor I’m sure someone could take a quick look to see if there’s any obvious issue.

---

<div class="post-metadata">

**Author:** ![ben12](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@ben12](https://forum.bubble.io/u/ben12)\
**Post date:** [May 11, 2021, 10:51am UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/9 "2021-05-11T10:51:32Z")

</div>

Here is a link to the editor: [Benproject1 | Bubble Editor](https://bubble.io/page?type=page&name=checkout&id=benproject1&tab=tabs-1)

there are some hidden groups in Step 1, Step 2, Step 3

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 11, 2021, 11:17am UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/10 "2021-05-11T11:17:05Z")

</div>

As far as I can see you haven’t got `Collapse Element's Height When Hidden` checked on any of your groups (apart from the group containing the card input fields), so try adding that to the main elements as well.

Although the bottom of the page is staying consistent in relation to the right hand column (the floating group) - so that’s probably why the space is not collapsing (it’s staying the same distance from the bottom of the floating group).

So you might need to add a hidden group at the bottom of the page with the sole purpose of collapsing when the card details group is not visible if you want the bottom of the page to change its position relative to the right hand column.

---

<div class="post-metadata">

**Author:** ![ben12](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@ben12](https://forum.bubble.io/u/ben12)\
**Post date:** [May 11, 2021, 11:44am UTC](https://forum.bubble.io/t/page-height-not-reducing-when-groups-collapse/150566/11 "2021-05-11T11:44:49Z")

</div>

So it looks like i needed a group as you said across the entire space below the floating group to collapse

Thanks !!
