View Full Version : Setting the editor size in a form, on collapse of a group.

17 Sep 2009, 2:32 AM

I have a form, and some parts in the form can be collapsed (like a grouping of fields).
What happens right now, is that the editor goes up instead of expanding - and I have to resize it.

What would be the best way to do that? Go through all of the items and calculate the height?

The smartest solution I had found, was create a 'fit_field' and check the button's y size.
If the button isn't at 15px from the bottom of the form, change the field's width to form_height - 30px..

Is there a better solution for this?