# Auto Adjust Width for RG Cells

**URL:** <https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849>\
**Category:** Responsiveness\
**Created:** [June 14, 2024, 3:46pm UTC](https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849 "2024-06-14T15:46:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![peanutbutter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/peanutbutter/32/226663_2.png) [@peanutbutter](https://forum.bubble.io/u/peanutbutter)\
**Post date:** [June 14, 2024, 3:46pm UTC](https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849/1 "2024-06-14T15:46:52Z")

</div>

Hi Bubblers, I know there’s a paid plugin that does this, but is there free and native solutioins that help auto adjust the width of a repeating group cell so that it fits the content/text inside it?

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [June 14, 2024, 5:33pm UTC](https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849/2 "2024-06-14T17:33:16Z")

</div>

Can you elaborate and/or point to an example of what you’re trying to achieve? And what’s the desired behavior on different width devices?

---

<div class="post-metadata">

**Author:** ![aleemansari97](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aleemansari97/32/219562_2.png) [@aleemansari97](https://forum.bubble.io/u/aleemansari97)\
**Post date:** [June 14, 2024, 8:17pm UTC](https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849/3 "2024-06-14T20:17:42Z")

</div>

Just set a “min width of column” on the repeating group (make it really low), and it’ll automatically adjust for longer cells as well 🙂

---

<div class="post-metadata">

**Author:** ![peanutbutter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/peanutbutter/32/226663_2.png) [@peanutbutter](https://forum.bubble.io/u/peanutbutter)\
**Post date:** [June 15, 2024, 1:32pm UTC](https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849/4 "2024-06-15T13:32:11Z")

</div>

Hi @sudsy , thank you for your reply! Here’s an image showing what I want to achieve:

 ![Screenshot 2024-06-15 at 12.43.35](https://us1.discourse-cdn.com/bubble/original/3X/4/8/4803c640f89ba40a93dc4074568da4d6522ec89f.png)  
I have set up a repeating group with text element in cells. I want the text element to fit width to content and does not wrap the text, and I also want the RG cell to fit width to content inside the cell.

Right now I can only achieve this by playing with the min width of RG cell setting (min width of column is set to the width of the longest text element):

 ![Screenshot 2024-06-15 at 12.42.51](https://us1.discourse-cdn.com/bubble/original/3X/8/1/819a1304693d9a4f7461f35d9cf7634240772ed5.png)

If I set the min width of column to a really low value as @aleemansari97 suggested, say 1 px, the whole thing would collapse like this:

 ![Screenshot 2024-06-15 at 12.43.57](https://us1.discourse-cdn.com/bubble/original/3X/b/0/b0f482039c6aba17bb34814524dbe6b0e35f5e24.png)

p.s. the text in each cell is already set to “fit width to content”.

Do you know if there’s a workaround for this? Thanks.

---

<div class="post-metadata">

**Author:** ![peanutbutter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/peanutbutter/32/226663_2.png) [@peanutbutter](https://forum.bubble.io/u/peanutbutter)\
**Post date:** [June 15, 2024, 1:34pm UTC](https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849/5 "2024-06-15T13:34:56Z")

</div>

Hi @aleemansari97 , thank you for your reply! I set the min width of column to 1 px, but the whole thing would collapse like this:

 ![Screenshot 2024-06-15 at 12.43.57](https://us1.discourse-cdn.com/bubble/original/3X/b/0/b0f482039c6aba17bb34814524dbe6b0e35f5e24.png)  
Is there something I might have missed or done incorrectly?

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [June 15, 2024, 1:58pm UTC](https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849/6 "2024-06-15T13:58:23Z")

</div>

Set the RG’s **Scroll direction** to **Wrapped horizontally** (on the **Appearance** tab of the properties editor).

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [June 15, 2024, 2:08pm UTC](https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849/7 "2024-06-15T14:08:56Z")

</div>

Yep do this, and then for the group that’s in each cell, fit width to content and each cell will be resized to the width of the content.

---

<div class="post-metadata">

**Author:** ![peanutbutter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/peanutbutter/32/226663_2.png) [@peanutbutter](https://forum.bubble.io/u/peanutbutter)\
**Post date:** [June 15, 2024, 3:28pm UTC](https://forum.bubble.io/t/auto-adjust-width-for-rg-cells/326849/8 "2024-06-15T15:28:59Z")

</div>

Thanks a lot! Helped me save 50 bucks for the plugin:)
