Skip to content

Commit 85193b5

Browse files
committed
position: add document link; values should be string but not defaultValue variant
1 parent ee3a171 commit 85193b5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ui/ui.position.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Dual licensed under the MIT (MIT-LICENSE.txt)
66
* and GPL (GPL-LICENSE.txt) licenses.
77
*
8-
* TODO: create document page for position and add link here
8+
* http://docs.jquery.com/UI/Position
99
*/
1010
(function($) {
1111

@@ -80,7 +80,7 @@ $.fn.position = function(options) {
8080
case 'right':
8181
basePosition.left += targetWidth;
8282
break;
83-
case horizontalDefault:
83+
case 'center':
8484
basePosition.left += targetWidth / 2;
8585
break;
8686
}
@@ -89,7 +89,7 @@ $.fn.position = function(options) {
8989
case 'bottom':
9090
basePosition.top += targetHeight;
9191
break;
92-
case verticalDefault:
92+
case 'center':
9393
basePosition.top += targetHeight / 2;
9494
break;
9595
}
@@ -110,7 +110,7 @@ $.fn.position = function(options) {
110110
case 'right':
111111
position.left -= elemWidth;
112112
break;
113-
case horizontalDefault:
113+
case 'center':
114114
position.left -= elemWidth / 2;
115115
break;
116116
}
@@ -119,7 +119,7 @@ $.fn.position = function(options) {
119119
case 'bottom':
120120
position.top -= elemHeight;
121121
break;
122-
case verticalDefault:
122+
case 'center':
123123
position.top -= elemHeight / 2;
124124
break;
125125
}

0 commit comments

Comments
 (0)