Issue 36: how to modify modal width/height in setting?
Status:  Fixed
Owner: ----
Closed:  Jun 2008
Reported by hxion...@gmail.com, Jun 27, 2008
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
Project Member #1 nyro...@gmail.com
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>
Status: Fixed
Labels: -Type-Defect Type-Other
Jun 27, 2008
#2 hxion...@gmail.com
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
Project Member #3 nyro...@gmail.com
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
#4 hxion...@gmail.com
thanks lot. that really helps.