Issue 21: ajax resize to contents
Status:  Fixed
Owner: ----
Closed:  Jun 2008
Reported by arsh...@gmail.com, Jun 1, 2008
I'm not clear on how to resize nyroModal to Ajax content.

The example shows a random resize based on a click action, what I would
like is for it to size the dynamic content (probably using the jquery
dimension plugin) and automatically size the nyroModal accordingly similar
to how this prototype component does:

http://www.wildbit.com/labs/modalbox/

Thank you.
Jun 1, 2008
Project Member #1 nyro...@gmail.com
Shame on me... Why didn't I do that since the beginning?

BTW, it's fixed now, and I just released the version 1.2.5.
Basically, when you won't set the width and/or the height in the settings, they will
be set automatically as you requested. Moreover, it's now the default behavior

Hope it will work for you.

Thanks for your report !

And don't hesitate to put a link of your lvie site if you're using it ;)
Status: Fixed
Jun 1, 2008
#2 arsh...@gmail.com
Awesome!  It's now doing exactly what I needed.  Thank you!
Jun 1, 2008
Project Member #3 nyro...@gmail.com
You're welcome!
Glad you're using it ;)
Jun 5, 2008
#4 arsh...@gmail.com
BTW, I started my cross browser testing and the resize works great on FireFox 2.x, IE
6 but in Safari 3.1 (on windows) I seem to get this narrow, long dialog (irregardless
of the size of the content being returned via AJAX).

Thank you.
Jun 6, 2008
Project Member #5 nyro...@gmail.com
arshakn, it works fine for me in Safari on Windows in my test page
Do you have a link where I can see your test page?
Aug 28, 2008
#7 cwdi...@gmail.com
So, a follow-up question to Arshak's: I have a modal form that submits via ajax. On
unsuccessful return, a div somewhere near the top explains the errors, making the
content taller. That introduces scrollbars. Is there a way the modal box can grow
instead?

Thanks

Aug 29, 2008
Project Member #8 nyro...@gmail.com
Hi cwdinfo, take a look at the  issue 25 , in the last comment.
https://code.google.com/p/nyromodal/issues/detail?id=25
Jun 24, 2010
#9 phpshind...@gmail.com
Hi ! I think I have the same problem. When I call nyromodal AJAX inner content in Mozilla it is OK, but in Opera it is adding an awesome scrollbar! How can I fix that? See: http://livescore-bg.net/new/ click on any football result to see what am I talking about..