On Thu, Sep 24, 2009 at 7:12 PM, Yermo <[email protected]> wrote:

>
> I've verified that this problem is solved in 1.8a1 however I'm running
> into a dialog positioning problem. 1.7.2 dialogs appear in the center
> of the page as they should but in 1.8a1 they appear in the lower left
> corner of the window regardless of the position: setting. Since I
> can't reproduce it (yet) in the demo apps I figure it has to be
> something on the page. Maybe a style.
>

The 1.8a1 and trunk dialogs make use of the new position plugin. We're still
working through some issues like this. If you could narrow it down and
reproduce, that would be a great help.


>
> In the meantime what I've done is fallen back to 1.7.2 and initialized
> my dialog to include
>
> dialog.dailog(
> {
> ....
> resizeStop: function(){ dialog.trigger( 'dialogresizestop'); }
> ...
> }
>
> which allows me to write the rest of my code to be compatible with
> 1.8a1 without having to upgrade to the alpha codebase. It seems to
> work like a champ.
>

Seems like a very sensible workaround. Glad you got it working. Also, don't
know whether you've considered it, but you could add that to dialog
defaults, using something like:

$.extend($.ui.dialog.defaults, {
  resizeStop: function(){
    $(this).closest('.ui-dialog').trigger('dialogresizestop');
  }
});

This would keep you from passing another resizeStop function at init, as it
would override this one, but instead you could just do multiple .bind()s

- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to