Skip to content

Commit

Permalink
Position: rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
chicheng committed Jul 27, 2009
1 parent 85193b5 commit f35bae5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/ui.position.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $.fn.position = function(options) {
case 'right':
basePosition.left += targetWidth;
break;
case 'center':
case horizontalDefault:
basePosition.left += targetWidth / 2;
break;
}
Expand All @@ -89,7 +89,7 @@ $.fn.position = function(options) {
case 'bottom':
basePosition.top += targetHeight;
break;
case 'center':
case verticalDefault:
basePosition.top += targetHeight / 2;
break;
}
Expand All @@ -110,7 +110,7 @@ $.fn.position = function(options) {
case 'right':
position.left -= elemWidth;
break;
case 'center':
case horizontalDefault:
position.left -= elemWidth / 2;
break;
}
Expand All @@ -119,7 +119,7 @@ $.fn.position = function(options) {
case 'bottom':
position.top -= elemHeight;
break;
case 'center':
case verticalDefault:
position.top -= elemHeight / 2;
break;
}
Expand Down

0 comments on commit f35bae5

Please sign in to comment.