PDA

View Full Version : BasicDialog with auto resize



mindows
29 Dec 2006, 11:56 AM
Hello, Jack and all!
I'm pretty new to yui-ext so maybe I missed this feature, but is there a way to auto-resize a BasicDialog based on the size of the body content?

I'm loading images into a dialog box dynamically and I need the dialog box to shrink/expand based on the image size. Currently, if the image is too large, then I get a scrollbar, which isn't really bad, but I'd like to improve if possible.

Thanks in advance,

moraes
29 Dec 2006, 9:01 PM
See this example:

http://www.yui-ext.com/forum/viewtopic.php?t=885

The 'maximize' function is a good start point for you.

jack.slocum
31 Dec 2006, 3:03 AM
Also new in SVN is a function "setContentSize(w, h)". So you could pass in your image dimensions.

mindows
31 Dec 2006, 7:26 AM
Also new in SVN is a function "setContentSize(w, h)". So you could pass in your image dimensions.

sweet! I'll check out those solutions. Thanks!