| Issue 215: | Removing loading animation - IE problems | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
Hi, As advised here - https://code.google.com/p/nyromodal/issues/detail?id=169#c7 I've used the suggested code to remove loading animation, and instantly showing the modal popup instead. here's the code I'm using: $.nyroModalSettings({ minWidth:0,minHeight:0,showLoading: true, showLoading: function(elts, settings, callback) { callback(); }, showContent: function(elts, settings, callback) { callback(); elts.contentWrapper .css({ width: settings.width+'px', height: settings.height+'px', marginTop: settings.marginTop+'px', marginLeft: settings.marginLeft+'px' }) .show(); elts.loading.fadeOut(200, callback); $('#nyroModalFull').css('zIndex',9999); }, hideContent: function(elts, settings, callback) { elts.contentWrapper.hide(); callback(); } }); It works fine in firefox, showing the modal in the correct size (the width of the inner element), but fails in IE, throwing a JS error and shows only the background alpha-layer. When checking it deeper - I've found out that settings.width & settings.height contains 'null'... I've tried setting both to 'auto' (i.e.: .css({width: 'auto', height: 'auto'}), this time it showed the modal in IE without a JS error, but with the wrong width (width & height were fine in FF, only height was fine in IE)... Any ideas? :(
May 14, 2009
Project Member
#1
nyro...@gmail.com
Jul 9, 2009
(No comment was entered for this change.)
Status:
Fixed
|
||||||||