Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 scottgonzalez authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.position.js
6 ui/jquery.ui.position.js
View
@@ -83,7 +83,7 @@ $.fn.position = function( options ) {
if ( options.at[0] === "right" ) {
basePosition.left += targetWidth;
- } else if (options.at[0] === center ) {
+ } else if ( options.at[0] === center ) {
basePosition.left += targetWidth / 2;
}
@@ -103,9 +103,9 @@ $.fn.position = function( options ) {
marginLeft = parseInt( $.curCSS( this, "marginLeft", true ) ) || 0,
marginTop = parseInt( $.curCSS( this, "marginTop", true ) ) || 0,
collisionWidth = elemWidth + marginLeft +
- parseInt( $.curCSS( this, "marginRight", true ) ) || 0,
+ ( parseInt( $.curCSS( this, "marginRight", true ) ) || 0 ),
collisionHeight = elemHeight + marginTop +
- parseInt( $.curCSS( this, "marginBottom", true ) ) || 0,
+ ( parseInt( $.curCSS( this, "marginBottom", true ) ) || 0 ),
position = $.extend( {}, basePosition ),
collisionPosition;
Please sign in to comment.
Something went wrong with that request. Please try again.