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 = {
376376newOverBottom ; 
377377if  (  overTop  <  0  )  { 
378378newOverBottom  =  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   )  )  )  { 
380380data . elem 
381381. addClass (  "ui-flipped-bottom"  ) ; 
382382
@@ -385,7 +385,7 @@ $.ui.position = {
385385} 
386386else  if  (  overBottom  >  0  )  { 
387387newOverTop  =  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   )  )  { 
389389data . elem 
390390. addClass (  "ui-flipped-top"  ) ; 
391391
                         You can’t perform that action at this time. 
           
                  
0 commit comments