File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ $.ui.position = {
376376 newOverBottom ;
377377 if ( overTop < 0 ) {
378378 newOverBottom = position . top + myOffset + atOffset + offset + data . collisionHeight - outerHeight - withinOffset ;
379- if ( newOverBottom < 0 || newOverBottom < Math . abs ( overTop ) ) {
379+ if ( ( position . top + myOffset + atOffset + offset ) > overTop && ( newOverBottom < 0 || newOverBottom < Math . abs ( overTop ) ) ) {
380380 data . elem
381381 . addClass ( "ui-flipped-bottom" ) ;
382382
@@ -385,7 +385,7 @@ $.ui.position = {
385385 }
386386 else if ( overBottom > 0 ) {
387387 newOverTop = position . top - data . collisionPosition . marginTop + myOffset + atOffset + offset - withinOffset ;
388- if ( newOverTop > 0 || Math . abs ( newOverTop ) < overBottom ) {
388+ if ( ( position . top + myOffset + atOffset + offset ) > overBottom && ( newOverTop > 0 || Math . abs ( newOverTop ) < overBottom ) ) {
389389 data . elem
390390 . addClass ( "ui-flipped-top" ) ;
391391
You can’t perform that action at this time.
0 commit comments