| Issue 141: | how to recenter after | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
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 2, 2009
I don't understand. Did you figure out how to solve your problem? Is your last code working as you excpeted?
Jan 3, 2009
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
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
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
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
|
||||||||
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 });