aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorChi Cheng <cloudream@gmail.com>2009-07-26 09:36:29 +0000
committerChi Cheng <cloudream@gmail.com>2009-07-26 09:36:29 +0000
commit85193b54c9b4326271a3d543c24af81bea658a38 (patch)
treed03b28a00e7106772008584b0a8bee97007e7b71 /ui
parentee3a1718fb818f48b7de25266d9637c674f6e879 (diff)
downloadjquery-ui-85193b54c9b4326271a3d543c24af81bea658a38.tar.gz
jquery-ui-85193b54c9b4326271a3d543c24af81bea658a38.zip
position: add document link; values should be string but not defaultValue variant
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.position.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/ui.position.js b/ui/ui.position.js
index 330443c47..530d6c4b0 100644
--- a/ui/ui.position.js
+++ b/ui/ui.position.js
@@ -5,7 +5,7 @@
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
- * TODO: create document page for position and add link here
+ * http://docs.jquery.com/UI/Position
*/
(function($) {
@@ -80,7 +80,7 @@ $.fn.position = function(options) {
case 'right':
basePosition.left += targetWidth;
break;
- case horizontalDefault:
+ case 'center':
basePosition.left += targetWidth / 2;
break;
}
@@ -89,7 +89,7 @@ $.fn.position = function(options) {
case 'bottom':
basePosition.top += targetHeight;
break;
- case verticalDefault:
+ case 'center':
basePosition.top += targetHeight / 2;
break;
}
@@ -110,7 +110,7 @@ $.fn.position = function(options) {
case 'right':
position.left -= elemWidth;
break;
- case horizontalDefault:
+ case 'center':
position.left -= elemWidth / 2;
break;
}
@@ -119,7 +119,7 @@ $.fn.position = function(options) {
case 'bottom':
position.top -= elemHeight;
break;
- case verticalDefault:
+ case 'center':
position.top -= elemHeight / 2;
break;
}