Skip to main content

Bug Tracker

Side navigation

Ticket #2953: patch_curCSS.txt


File patch_curCSS.txt, 0.6 KB (added by lrbabe, May 29, 2008 01:28PM UTC)

proposed patch for src/core.js curCSS function

Index: /home/lrbabe/workspace/jQuery/jquery/src/core.js
===================================================================
--- /home/lrbabe/workspace/jQuery/jquery/src/core.js	(revision 5704)
+++ /home/lrbabe/workspace/jQuery/jquery/src/core.js	(working copy)
@@ -859,7 +859,7 @@
 		if ( !force && style && style[ name ] )
 			ret = style[ name ];
 
-		else if ( defaultView.getComputedStyle ) {
+		else if ( defaultView.getComputedStyle && !(jQuery.browser.opera && (name == 'width' || name == 'height') && jQuery.curCSS(elem, 'display') == 'none')) {
 
 			// Only "float" is needed here
 			if ( name.match( /float/i ) )

Download in other formats:

Original Format