includes/clientside/static/autofill.js
changeset 747 cffe13960330
parent 704 077887be639d
child 779 609e35845ec3
equal deleted inserted replaced
746:f81f2a4f8d04 747:cffe13960330
   307         var td_bottom = td_top + td_height;
   307         var td_bottom = td_top + td_height;
   308         var visibleTopBoundary = getScrollOffset(results);
   308         var visibleTopBoundary = getScrollOffset(results);
   309         var results_height = $dynano(results).Height();
   309         var results_height = $dynano(results).Height();
   310         var visibleBottomBoundary = visibleTopBoundary + results_height;
   310         var visibleBottomBoundary = visibleTopBoundary + results_height;
   311         var scrollTo = false;
   311         var scrollTo = false;
   312         console.debug('td top = %d, td height = %d, td bottom = %d, visibleTopBoundary = %d, results_height = %d, visibleBottomBoundary = %d, step = %d',
       
   313                        td_top, td_height, td_bottom, visibleTopBoundary, results_height, visibleBottomBoundary, step);
       
   314         if ( td_top < visibleTopBoundary && step < 0 )
   312         if ( td_top < visibleTopBoundary && step < 0 )
   315         {
   313         {
   316           // going up: scroll the results div to just higher than the result we're trying to see
   314           // going up: scroll the results div to just higher than the result we're trying to see
   317           scrollTo = td_top - 7;
   315           scrollTo = td_top - 7;
   318         }
   316         }