Export to GitHub

nyromodal - issue #221

Automatically resize when window size changes


Posted on Apr 21, 2009 by Happy Kangaroo

I'm using a height and width of 10000 to get the maximum size possible, which works great. (Not sure if that's the best way to achieve it, but seems pretty good - 100% doesn't work.)

I want the user to be able to resize their browser window, and for the popup to automatically resize to match. I've managed to achieve this with this code:

$(window).bind("resize", function() { $.nyroModalSettings({width: '10000', height: '10000'}); });

It would be very useful if this was done automatically by default, or at least if there were some parameter to achieve the same.

Thanks!

Comment #1

Posted on Apr 22, 2009 by Swift Panda

I'm currently reviewing my code to include this feature. Your code is a good one in your case, but I have to change some tweak things to be sure it's working great in the plugin code.

Comment #2

Posted on May 14, 2009 by Swift Panda

After a while, the version 1.5.0 is now here and fix this issue.

Status: Fixed