Issue 141: how to recenter after
Status:  Fixed
Owner: ----
Closed:  Jan 2009
Reported by pierreva...@gmail.com, Jan 1, 2009
This works well for redefining the div size:

$.nyroModalManual({modal: true, url: 'content/dialogs.aspx?
dc=as&w=300&h=200' });

However, the modal box is no longer centered. 
Is there any way to re-center it on the screen ?

Thanks
Jan 1, 2009
#1 pierreva...@gmail.com
well I use this also and I would like how to re-center the modal box on the screen 
also

        $.nyroModalSettings({
            height: 300,
            width: 600
          });

Jan 2, 2009
Project Member #2 nyro...@gmail.com
I don't understand.
Did you figure out how to solve your problem?
Is your last code working as you excpeted?
Jan 3, 2009
#3 pierreva...@gmail.com
Yes, the last code worked very well, thank you.
But after the modal box is resized, it is no centered anymore.
The modal box opens, resizes, and then it is not centered.

Jan 22, 2009
#4 Mamali.S...@gmail.com
What does dialogs.aspx?dc=as&w=300&h=200 generate. I have never tried to show an aspx
page with nyromodal (I did even know that was possible to call that way). have you
tried to make a httpHandler instead of aspx, and return necessaries html code?
Jan 23, 2009
#5 pierreva...@gmail.com
Basically, the ASP page generates a content div on the fly and send it over to the 
client. When the following code executes :

$.nyroModalSettings({
            height: 300,
            width: 600
          });

it displays the content generated on the server. Like I said, this works nicely but 
the modal is not centered.

For a demo page showing the issue, please go to this address: http://www.amimio.fr/test.aspx
The link will be available for about 1 week

Thanks

Pierre
Jan 27, 2009
Project Member #6 nyro...@gmail.com
The bug occured because you tried to change the size while the modal was animated.
To fix this bug, I saved the width and height desired in a temp var and THEN, once
the modal is shown, the modal is resized.
This issue will be fixed in the next release.
Status: Fixed