I'm not sure you'll be able to do this with the current options. Here's what you can do:
- You can specify an effect to be used when the dialog is opened or closed. See http://docs.jquery.com/UI/Dialog#option-show http://docs.jquery.com/UI/Dialog#option-hide - There isn't currently a minimize button or a minimize function. You could add your own button. The minimize would just need to hide the dialog content, which has the class .ui-dialog-content. It's also the same element on which you called .dialog(options). - You can position it to the right top corner by $("#myDialog").dialog("option", "position", ['right', 'top']); See http://docs.jquery.com/UI/Dialog#option-position . But that would position it without an animation. What you're looking for overall sounds like it would best be handled by a new feature, which has already been requested here: http://dev.jqueryui.com/ticket/1670 Feel free to add to that if you have specifics you think should be considered. Also, you can discuss the design and future direction of this plugin on the Dev & Planning wiki: http://wiki.jqueryui.com/Dialog Just leave a comment on that page (you'll have to request access - see button, top-right). - Richard On Thu, Mar 12, 2009 at 9:34 AM, dani <[email protected]> wrote: > > I would like to animate a dialog's width, height and position when > pressing a button "minimize". > > How can I position it to the right top corner of the document body? > > Thanks! > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
