PDA

View Full Version : How to make form in a tab of a basicdialog auto-height?



amon
25 Apr 2007, 2:13 AM
Hello!

I have a BasicDialog. I created some tabs into it. In the tabs, there is a form, what enclose the form fields, and two tinymce editor on other two tabs. How can I make the form auto-height?
If I resize the dialog, the form is not resized with the dialog. I must to resize the form with the dialog.

tryanDLS
25 Apr 2007, 8:10 AM
You probably want to add a handler for the dialog's resize event and then update the form size. You could also experiment with using a percentage for the form's height, so it scales to its container. Haven't tried that, you'd have to take a look at the rendered HTML and see what container needs the height attribute.