Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Position: Fixed calculation of collision dimensions. Fixes #6812 - Po…

…sition: Collision detection fails on the right side in Internet Explorer.
  • Loading branch information...
commit ca46a3a8a9353e50e517ece4273639637e5b3cf1 1 parent 1f0fd61
Scott González authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  ui/jquery.ui.position.js
6  ui/jquery.ui.position.js
@@ -83,7 +83,7 @@ $.fn.position = function( options ) {
83 83
 
84 84
 	if ( options.at[0] === "right" ) {
85 85
 		basePosition.left += targetWidth;
86  
-	} else if (options.at[0] === center ) {
  86
+	} else if ( options.at[0] === center ) {
87 87
 		basePosition.left += targetWidth / 2;
88 88
 	}
89 89
 
@@ -103,9 +103,9 @@ $.fn.position = function( options ) {
103 103
 			marginLeft = parseInt( $.curCSS( this, "marginLeft", true ) ) || 0,
104 104
 			marginTop = parseInt( $.curCSS( this, "marginTop", true ) ) || 0,
105 105
 			collisionWidth = elemWidth + marginLeft +
106  
-				parseInt( $.curCSS( this, "marginRight", true ) ) || 0,
  106
+				( parseInt( $.curCSS( this, "marginRight", true ) ) || 0 ),
107 107
 			collisionHeight = elemHeight + marginTop +
108  
-				parseInt( $.curCSS( this, "marginBottom", true ) ) || 0,
  108
+				( parseInt( $.curCSS( this, "marginBottom", true ) ) || 0 ),
109 109
 			position = $.extend( {}, basePosition ),
110 110
 			collisionPosition;
111 111
 

0 notes on commit ca46a3a

Please sign in to comment.
Something went wrong with that request. Please try again.