We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6ed932 commit c1cc00fCopy full SHA for c1cc00f
ui/jquery.ui.position.js
@@ -82,7 +82,7 @@ $.fn.position = function( options ) {
82
83
if ( options.at[0] === "right" ) {
84
basePosition.left += targetWidth;
85
- } else if (options.at[0] === center ) {
+ } else if ( options.at[0] === center ) {
86
basePosition.left += targetWidth / 2;
87
}
88
@@ -102,9 +102,9 @@ $.fn.position = function( options ) {
102
marginLeft = parseInt( $.curCSS( this, "marginLeft", true ) ) || 0,
103
marginTop = parseInt( $.curCSS( this, "marginTop", true ) ) || 0,
104
collisionWidth = elemWidth + marginLeft +
105
- parseInt( $.curCSS( this, "marginRight", true ) ) || 0,
+ ( parseInt( $.curCSS( this, "marginRight", true ) ) || 0 ),
106
collisionHeight = elemHeight + marginTop +
107
- parseInt( $.curCSS( this, "marginBottom", true ) ) || 0,
+ ( parseInt( $.curCSS( this, "marginBottom", true ) ) || 0 ),
108
position = $.extend( {}, basePosition ),
109
collisionPosition;
110
0 commit comments