You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

[PATCH] Use bgiframe if present (to fix z-index issues in IE6) Created Feb 18, 2010

This thread is solved

Views: 2066     Replies: 2     Last reply Feb 25, 2010  
You must login first before you can use this feature

egomez

Posts: 2

Registered:
Jan 18, 2010

[PATCH] Use bgiframe if present (to fix z-index issues in IE6)

Posted: Feb 18, 2010

Please find attached a small patch to tools.expose-1.0.5.js which causes Expose to use Brandon Aaron's bgiframe plugin to fix/workaround IE6 z-index bugs, if bgiframe is already loaded.


diff --git a/public/javascripts/tools.expose-1.0.5.js b/public/javascripts/tools.expose-1.0.5.js
index 7bf5b8a..0ddb010 100644
--- a/public/javascripts/tools.expose-1.0.5.js
+++ b/public/javascripts/tools.expose-1.0.5.js
@@ -115,8 +115,11 @@
 						display:'none',
 						opacity: 0,					 		
 						zIndex:conf.zIndex	
 					});						
 					
+					// fix select boxes popping through mask in IE6
+					if ($.fn.bgiframe) { mask.bgiframe(); }
 					// id
 					if (conf.maskId) { mask.attr("id", conf.maskId); }					
 					

I would prefer not to maintain my own fork of Expose in order to use this patch. Please let me know if there's anything I can do to help this patch make it in to the next release of Expose.

Thank you!
Emmanuel Gomez

scruffian

Posts: 2

Registered:
Feb 24, 2010

I concur

Posted: Feb 24, 2010

Reply to: [PATCH] Use bgiframe if present (to fix z-index issues in IE6), from egomez
This is great. Please integrate it!

scruffian

Posts: 2

Registered:
Feb 24, 2010

Alternatively

Posted: Feb 25, 2010

Reply to: [PATCH] Use bgiframe if present (to fix z-index issues in IE6), from egomez
An alternative to this is to call your expose like this:


expose: { 
	color: '#000', 
	loadSpeed: 200, 
	opacity: 0.5,
	onBeforeLoad: function() {
		if($.fn.bgiframe)  {
			this.getMask().bgiframe();
		}
	}
}