PDA

View Full Version : Auto resizing BasicDialog by content size.



hsvitalyi
30 May 2007, 10:30 PM
Hello

Can someone tell me how can i do so that ...
I have form inside dialog and it changes from small to larger using ajax. And when size of content of form is larger than dialog's one so part of content is hidden.

Regards

willydee
31 May 2007, 2:51 AM
var size = Ext.get('my-dialogs-inner-content-element').getSize();
dlg.setContentSize(size.width, size.height);