Dynamically resize control within a panel based on content.


Badge +7

How would I modify this to work in my scenario below. I can't seem to get the space to grow based on how big the table is in the multiple lines of text control.

Currently my control is a multiple lines of text, but I could probably switch it to something else if that helps. As far as my testing goes, the JS also works in a label control.


3 replies

Badge +7

‌ Any suggestions?

My colleague is convinced this is a CSS issue but I have been playing with everything I can think of and still can't get the box to grow.

I can quickly mock up what I am doing in a simpler form to share if that would help!

Thank you!

Badge +7

Here is an example.

I added colored borders to help keep the controls straight in my head.

As you can see, in my input panel (green) I have added two cities.

In my output panel (red), within the RS panel (blue), my rich txt box (purple) is seemingly not allowed to "grow" and you can see Edmonton is getting cut off.

Badge +7

Good news, I believe I got it fixed with Marian's solution here:

How to Resize Panel dynamically when fields inside are set via javascript  

The key was making the call at the right time, after the table was dynamically built.

Reply