Sure.
When I mentioned that it doesn't solve auto width, I was speaking
towards the css-based solution. It is a programmatic solution, though.
You're correct that I'm setting a specific width during init. It does
not allow for the dialog changing widths dynamically once the dialog
is initialized.
css:
fieldset { min-width: 400px; position: absolute; top: -10000px; left:
-10000px; } /* for ie6 just set width: 400px; */
html:
<fieldset>
....
</fieldset>
This allows for me to always have dialogs on my site at least 400px
wide, which happens to be the decided upon standard size for the
particular app this was designed for. One could do without that
particular css attribute, however. This also allows me to apply
another css class to the element in html to override the size if I
want to set it absolutely, and allows the fieldset to grow
horizontally based on the content - but before the dialog has been
init'd.
My wrapper function then measures the width and sets it within the
.dialog(...) init params.
So to reiterate, it allows for a semi-dynamic width *before* the
dialog is initialized. What this does, is take the thinking out of
having to set the width, or figure out what the width is - takes out
some busy work - and in apps with a large volume of dialog use, it's
nice to have.
Now I would assume that this is the most common use case for the
width: auto; setting, but then I've never had an alternate use for
width: auto. I'd just rather not have to think about figuring out and
setting the width explicitly each time I need to use the dialog.
2009/11/7 Scott González <
scott.g...@gmail.com>: