Skip to content
Permalink
Browse files

Position: rollback

  • Loading branch information
chicheng committed Jul 27, 2009
1 parent 85193b5 commit f35bae5a7f364782aaf1ed2e7d8b5d4c1ac60bb1
Showing with 4 additions and 4 deletions.
  1. +4 −4 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;
}

0 comments on commit f35bae5

Please sign in to comment.
You can’t perform that action at this time.