aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorChi Cheng <cloudream@gmail.com>2009-07-27 15:30:25 +0000
committerChi Cheng <cloudream@gmail.com>2009-07-27 15:30:25 +0000
commitf35bae5a7f364782aaf1ed2e7d8b5d4c1ac60bb1 (patch)
treeb3ee0dffd8cf9e4c7af8480398366ff7805136aa /ui
parent85193b54c9b4326271a3d543c24af81bea658a38 (diff)
downloadjquery-ui-f35bae5a7f364782aaf1ed2e7d8b5d4c1ac60bb1.tar.gz
jquery-ui-f35bae5a7f364782aaf1ed2e7d8b5d4c1ac60bb1.zip
Position: rollback
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.position.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/ui.position.js b/ui/ui.position.js
index 530d6c4b0..897df866f 100644
--- a/ui/ui.position.js
+++ b/ui/ui.position.js
@@ -80,7 +80,7 @@ $.fn.position = function(options) {
case 'right':
basePosition.left += targetWidth;
break;
- case 'center':
+ case horizontalDefault:
basePosition.left += targetWidth / 2;
break;
}
@@ -89,7 +89,7 @@ $.fn.position = function(options) {
case 'bottom':
basePosition.top += targetHeight;
break;
- case 'center':
+ case verticalDefault:
basePosition.top += targetHeight / 2;
break;
}
@@ -110,7 +110,7 @@ $.fn.position = function(options) {
case 'right':
position.left -= elemWidth;
break;
- case 'center':
+ case horizontalDefault:
position.left -= elemWidth / 2;
break;
}
@@ -119,7 +119,7 @@ $.fn.position = function(options) {
case 'bottom':
position.top -= elemHeight;
break;
- case 'center':
+ case verticalDefault:
position.top -= elemHeight / 2;
break;
}