mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Position: rollback
This commit is contained in:
parent
85193b54c9
commit
f35bae5a7f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user