r2977 commited - position: add document link; values should be string but not defaultVa...
Revision: 2977
Author: cloudream@gmail.com
Date: Sun Jul 26 02:36:29 2009
Log: position: add document link; values should be string but not
defaultValue variant
http://code.google.com/p/jquery-ui/source/detail?r=2977
Modified:
/branches/dev/positionTo/ui/ui.position.js
/trunk/ui/ui.position.js
=======================================
--- /branches/dev/positionTo/ui/ui.position.js Sat Jul 25 05:56:48 2009
+++ /branches/dev/positionTo/ui/ui.position.js Sun Jul 26 02:36:29 2009
@@ -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 @@
case 'right':
basePosition.left += targetWidth;
break;
- case horizontalDefault:
+ case 'center':
basePosition.left += targetWidth / 2;
break;
}
@@ -89,7 +89,7 @@
case 'bottom':
basePosition.top += targetHeight;
break;
- case verticalDefault:
+ case 'center':
basePosition.top += targetHeight / 2;
break;
}
@@ -110,7 +110,7 @@
case 'right':
position.left -= elemWidth;
break;
- case horizontalDefault:
+ case 'center':
position.left -= elemWidth / 2;
break;
}
@@ -119,7 +119,7 @@
case 'bottom':
position.top -= elemHeight;
break;
- case verticalDefault:
+ case 'center':
position.top -= elemHeight / 2;
break;
}
=======================================
--- /trunk/ui/ui.position.js Sat Jul 25 12:56:11 2009
+++ /trunk/ui/ui.position.js Sun Jul 26 02:36:29 2009
@@ -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 @@
case 'right':
basePosition.left += targetWidth;
break;
- case horizontalDefault:
+ case 'center':
basePosition.left += targetWidth / 2;
break;
}
@@ -89,7 +89,7 @@
case 'bottom':
basePosition.top += targetHeight;
break;
- case verticalDefault:
+ case 'center':
basePosition.top += targetHeight / 2;
break;
}
@@ -110,7 +110,7 @@
case 'right':
position.left -= elemWidth;
break;
- case horizontalDefault:
+ case 'center':
position.left -= elemWidth / 2;
break;
}
@@ -119,7 +119,7 @@
case 'bottom':
position.top -= elemHeight;
break;
- case verticalDefault:
+ case 'center':
position.top -= elemHeight / 2;
break;
}