| Issue 58: | It seems that 'height' parameter is ignored in certain cases | |
| 4 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. call $.nyroModalManual ( ... ) with 'height' parameter defined, content is passed through 'content' parameter. 2. Modal window is opened with default minHeight. 3. height, minHeight parameters are ignored. What is the expected output? What do you see instead? If I pass height parameter, I want my modal window to be opened with the specified height, and not the default one. What version of the product are you using? On what operating system? 1.2.8, Windows. Please provide any additional information below. Documentation system doesn't provide any clue on what is going on. The issue might be related to the type of content loaded, though it nowhere explicitly pointed.
Oct 14, 2008
Hi andrey.patyuchenko, Did you finally figure out what was going on? Do you need more information?
Jan 26, 2009
andrey.patyuchenko, any news about your issue?
Jan 27, 2009
Sorry, folks, I switched to Shadowbox, and do not use Nyromodal anymore. Good luck.
Jan 27, 2009
(No comment was entered for this change.)
Status:
WontFix
Feb 10, 2011
yo lo resolví rusticamente al modificar el minh del "jquery.nyroModal.custom.js", es decir:
<code>
sizes: {// Size information
initW: undefined, // Initial width
initH: undefined, // Initial height
w: undefined, // width
h: undefined, // height
minW: undefined, // minimum Width
minH: 500, // minimum height
wMargin: undefined, // Horizontal margin
hMargin: undefined // Vertial margin
},
</code>
Feb 10, 2011
yo lo resolví rusticamente al modificar el minh del "jquery.nyroModal.custom.js", es decir:
<code>
sizes: {// Size information
initW: undefined, // Initial width
initH: undefined, // Initial height
w: undefined, // width
h: undefined, // height
minW: undefined, // minimum Width
minH: 500, // minimum height
wMargin: undefined, // Horizontal margin
hMargin: undefined // Vertial margin
},
</code>
|
depending on if its an iframe, its takes on the minHeight/minWidth. if its a ajax call or loaded content within the current DOM then it auto sizes BUT if the content is smaller than minHeight/minWidth it will use those instead. you could override the default minHeight and width for all modals on that page to make them all bigger OR smaller for the new defined size. but they will all get that size now and that may not be desirable. //paste this in the head after nyromodal and jquery script includes $(function() { $.fn.nyroModal.settings.processHandler = function(settings) { $.nyroModalSettings({ minHeight: 355, minWidth: 425, height: 355, width: 425 }); }; }); OR take a look at issue 46, it explains why you cannot do that through the url like thickbox BUT i have attached a urlplugin extension that will allow you to do that if you wish.