Skip to main content

Bug Tracker

Side navigation

Ticket #2037: 2037.diff


File 2037.diff, 0.5 KB (added by davidserduke, December 17, 2007 01:14AM UTC)

patch

Index: src/core.js
===================================================================
--- src/core.js	(revision 4194)
+++ src/core.js	(working copy)
@@ -816,6 +816,12 @@
 				"1" :
 				ret;
 		}
+		// Opera sometimes will give the wrong display answer, this fixes it, see #2037
+		if ( jQuery.browser.opera && name == "display" ) {
+			var save = elem.style.display;
+			elem.style.display = "block";
+			elem.style.display = save;
+		}
 		
 		// Make sure we're using the right name for getting the float value
 		if ( name.match( /float/i ) )

Download in other formats:

Original Format