# Control group height with a text box

**URL:** <https://forum.bubble.io/t/control-group-height-with-a-text-box/156847>\
**Category:** Need help\
**Created:** [June 22, 2021, 3:27pm UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847 "2021-06-22T15:27:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohyoonkwn](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ohyoonkwn/32/76883_2.png) [@ohyoonkwn](https://forum.bubble.io/u/ohyoonkwn)\
**Post date:** [June 22, 2021, 3:27pm UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847/1 "2021-06-22T15:27:50Z")

</div>

Hi bubblers!

I have a group that has a fixed height due to the video content.  
In that group, there’s a title text. The hight of text changes from 1 to 3 lines. So it ends up changing the height of the box.

As I don’t want to truncate & hide title, I’m not able to control the hight of the box. Any ideas how to handle this?

Here are examples:

- short title: [What’s a “boring” hobby that’s not boring at all?](https://videomob.bubbleapps.io/version-test/ask/what%E2%80%99s-a-%E2%80%9Cboring%E2%80%9D-hobby-that%E2%80%99s-not-boring-at-all)
- long title: [What makes you hopeful that we can reach net zero emissions by 2050?](https://videomob.bubbleapps.io/version-test/ask/what-makes-you-hopeful-that-we-can-reach-net-zero-emissions-by-2050)

Thanks!  
Ohyoon

---

<div class="post-metadata">

**Author:** ![eve](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eve/32/48346_2.png) [@eve](https://forum.bubble.io/u/eve)\
**Post date:** [June 23, 2021, 4:16pm UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847/2 "2021-06-23T16:16:47Z")

</div>

You may want to remove the title from the box with the video so that you can expand the element’s height as necessary. 🙂

---

<div class="post-metadata">

**Author:** ![ohyoonkwn](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ohyoonkwn/32/76883_2.png) [@ohyoonkwn](https://forum.bubble.io/u/ohyoonkwn)\
**Post date:** [June 23, 2021, 5:43pm UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847/3 "2021-06-23T17:43:13Z")

</div>

Ah you’re right. It’s better to add the text in a desperate box…

it leads to an additional question. Is there way to automatically shrink font size when the text length is higher than the height of the text box?

---

<div class="post-metadata">

**Author:** ![eve](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eve/32/48346_2.png) [@eve](https://forum.bubble.io/u/eve)\
**Post date:** [June 23, 2021, 6:06pm UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847/4 "2021-06-23T18:06:52Z")

</div>

Not at the moment, but this might be worth a post on our [Ideaboard](https://bubble.io/ideaboard)! 😀

---

<div class="post-metadata">

**Author:** ![rpetribu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rpetribu/32/90852_2.png) [@rpetribu](https://forum.bubble.io/u/rpetribu)\
**Post date:** [June 23, 2021, 8:01pm UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847/5 "2021-06-23T20:01:56Z")

</div>

You can do it thru the Conditional tab.

When Current Page width \< 600 Font Size = 16  
When Current Page width \< 500 Font Size = 15  
When Current Page width \< 400 Font Size = 14  
…

---

<div class="post-metadata">

**Author:** ![kamil.tarczynski](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kamil.tarczynski](https://forum.bubble.io/u/kamil.tarczynski)\
**Post date:** [June 23, 2021, 8:04pm UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847/6 "2021-06-23T20:04:11Z")

</div>

I don’t know if I understand correctly, but if you want to shrink text depending on how much of characters text have, you can do this with conditional formating. But! the trick is that you need to save this title in some element state. For example you crate custom state on this text called “movieTitle”.  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/7/8798cd649b79f15b519254aedb286bfe1973bb22.png)

On the page load you need set state of this text Title to this movie tittle.  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/6/f681ae0f6c1786fdc8dc6a5b5eab7c236ab220a1.png)

On the conditional formatting of this text you could setup something like this:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/9/691f9bbfec1836819b315dad78c1a09086a756ca.png)

Hope I understand correctly and this will help 🙂

---

<div class="post-metadata">

**Author:** ![rpetribu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rpetribu/32/90852_2.png) [@rpetribu](https://forum.bubble.io/u/rpetribu)\
**Post date:** [June 23, 2021, 8:08pm UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847/7 "2021-06-23T20:08:14Z")

</div>

@kamil.tarczynski solution is much better than mine. I miss understood the problem.

---

<div class="post-metadata">

**Author:** ![ohyoonkwn](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ohyoonkwn/32/76883_2.png) [@ohyoonkwn](https://forum.bubble.io/u/ohyoonkwn)\
**Post date:** [June 24, 2021, 8:24am UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847/8 "2021-06-24T08:24:32Z")

</div>

That’s it! Thank you so much for pointing out!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [August 31, 2021, 3:28pm UTC](https://forum.bubble.io/t/control-group-height-with-a-text-box/156847/9 "2021-08-31T15:28:36Z")

</div>

Closed on August 31, 2021, 3:28pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
