| Issue 36: | how to modify modal width/height in setting? | |
| 2 people starred this issue and may be notified of changes. | Back to list |
i tried to do the following to change modal width/height, but no success:
$(document).ready(function(){
$('a.nyroModal').nyroModal({width: "800px", height: "300px"});
});
any suggestions??
Jun 27, 2008
Thanks lot for your response!
A little bit confused though.
In project home you suggest we change settings in 3 ways,
1. Directly modify $.fn.nyroModal.settings. --------------works!
2. $('a.nyroModal').nyroModal({bgColor: '#ffffff'}); ---- i tried no luck
3. $.nyroModalSettings(settings); ------------------------i tried no luck
Jun 27, 2008
The first 1 is to update the default settings for all modal The second is used when you want defined your own settings for a specific kind of links (maybe I should update the className to write a.nyroModalOther to be less confusing) The last one is used when you want update the settings of the current modal. for instance an ajax page can defined is own size by using this function. I'll review the doc to try to be less confusing. Thanks
Jun 27, 2008
thanks lot. that really helps. |
To change the default height and width, use this code: <script type="text/javascript"> $(function() { $.fn.nyroModal.settings.width = 800; $.fn.nyroModal.settings.height = 300; }); </script>Labels: -Type-Defect Type-Other