File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments