My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 215: Removing loading animation - IE problems
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jul 2009


 
Reported by jit...@gmail.com, Apr 13, 2009
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
on the showContent callback, remove the first callback(); and it should work.
Jul 9, 2009
Project Member #2 nyro...@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting