Skip to content

Commit

Permalink
Position: Restore old flip collision handling
Browse files Browse the repository at this point in the history
This reverts commit 7f808b2.

Fixes #8710
Ref gh-1071
  • Loading branch information
meyertee authored and scottgonzalez committed Jan 9, 2015
1 parent ab798cb commit ebaaca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,12 @@ $.ui.position = {
newOverBottom;
if ( overTop < 0 ) {
newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;
if ( ( position.top + myOffset + atOffset + offset) > overTop && ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) ) {
if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
position.top += myOffset + atOffset + offset;
}
} else if ( overBottom > 0 ) {
newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) {
if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
position.top += myOffset + atOffset + offset;
}
}
Expand Down

0 comments on commit ebaaca7

Please sign in to comment.