aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.position.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-02-12 09:01:06 -0500
committerScott González <scott.gonzalez@gmail.com>2012-02-12 09:01:06 -0500
commit609243b21d2530ecd5e8e19e99951decc8587285 (patch)
tree7a13a33fa14348553e9378f8349177dbc9334744 /ui/jquery.ui.position.js
parent00b69db88365e41afbed29b9fed3592e0703b8ed (diff)
downloadjquery-ui-609243b21d2530ecd5e8e19e99951decc8587285.tar.gz
jquery-ui-609243b21d2530ecd5e8e19e99951decc8587285.zip
Use jQuery.css() instead of deprecated jQuery.curCSS().
Diffstat (limited to 'ui/jquery.ui.position.js')
-rw-r--r--ui/jquery.ui.position.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js
index 00976bf79..119847cec 100644
--- a/ui/jquery.ui.position.js
+++ b/ui/jquery.ui.position.js
@@ -152,13 +152,13 @@ $.fn.position = function( options ) {
var elem = $( this ),
elemWidth = elem.outerWidth(),
elemHeight = elem.outerHeight(),
- marginLeft = parseInt( $.curCSS( this, "marginLeft", true ) ) || 0,
- marginTop = parseInt( $.curCSS( this, "marginTop", true ) ) || 0,
+ marginLeft = parseInt( $.css( this, "marginLeft" ) ) || 0,
+ marginTop = parseInt( $.css( this, "marginTop" ) ) || 0,
scrollInfo = $.position.getScrollInfo( within ),
collisionWidth = elemWidth + marginLeft +
- ( parseInt( $.curCSS( this, "marginRight", true ) ) || 0 ) + scrollInfo.width,
+ ( parseInt( $.css( this, "marginRight" ) ) || 0 ) + scrollInfo.width,
collisionHeight = elemHeight + marginTop +
- ( parseInt( $.curCSS( this, "marginBottom", true ) ) || 0 ) + scrollInfo.height,
+ ( parseInt( $.css( this, "marginBottom" ) ) || 0 ) + scrollInfo.height,
position = $.extend( {}, basePosition ),
myOffset = [
parseInt( offsets.my[ 0 ], 10 ) *