I assumed that pressing the "X" button or closing the dialog in any
other way from your browser would call the dialog close function
internally.. I guess I was wrong?
Either way, having figured out that by default the dialog height is
fixed ot it's initial size does not really solve my problem, I could
write a small function to calculate the required dialog height every
time it is spawned and then manually set that, but to be honest I kind
of hoped jquery could come with something simpler than that, and from
the documentation I understood that this is what height: auto should
do in the first place.
Am I wrong here?
Thanks for your help,
Nathan
On Oct 24, 4:53 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 24, 2008 at 2:07 PM, Naatan <[EMAIL PROTECTED]> wrote:
>
> > If you check my Javascript code you will see that it gives answer to
> > all your questions.
>
> I looked through your code and couldn't find any .dialog("close") or
> .dialog("open") which suggests that you're calling .dialog(options) again
> and again on the same element, even though it's already initialized as a
> dialog. This is what concerned me, and I wasn't sure whether there was more
> code that I wasn't seeing. For example, if there were a .dialog("destroy")
> somewhere, this repeated call to .dialog(options) would make sense.
>
>
>
> > Since my post I've found that the height loads automatically the first
> > time the dialog is opened.. after that the height is fixed to the
> > initial dialog height every time you re-open the dialog (with
> > different content, as provided by ajax).
>
> Sounds right. Glad you figured it out.
>
> - Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---