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