Skip to content

Commit 276cd5c

Browse files
meyerteescottgonzalez
authored andcommitted
Position: Restore old flip collision handling
This reverts commit 7f808b2. Fixes #8710 Ref gh-1071 (cherry picked from commit ebaaca7)
1 parent dc2b17d commit 276cd5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/position.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,12 @@ $.ui.position = {
448448
newOverBottom;
449449
if ( overTop < 0 ) {
450450
newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;
451-
if ( ( position.top + myOffset + atOffset + offset) > overTop && ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) ) {
451+
if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
452452
position.top += myOffset + atOffset + offset;
453453
}
454454
} else if ( overBottom > 0 ) {
455455
newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
456-
if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) {
456+
if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
457457
position.top += myOffset + atOffset + offset;
458458
}
459459
}

0 commit comments

Comments
 (0)