Changeset 5706


Ignore:
Timestamp:
10/09/09 12:27:05 (10 years ago)
Author:
pnorton
Message:

Added a scrollbar to the autocomplete dropdown, also extended the maximum number of dropdown items to 25.

Location:
cowsclient/trunk/cowsclient/public
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/cowsclient/public/js/utils.js

    r5698 r5706  
    171171        queryDelay: 0, 
    172172        minQueryLength: 0, 
    173         animVert: .01 
     173        animVert: .01, 
     174        maxResultsDisplayed:25 
    174175    } 
    175176 
  • cowsclient/trunk/cowsclient/public/layout/yui_autocomplete.css

    r5685 r5706  
    66     
    77    /* needed for stacked instances for ie & sf z-index bug of absolute inside relative els */ 
     8    /* Id's taken form the example, left here to be changed when needed */ 
    89    #breakfast_autocomplete { z-index:9001; } 
    910    #lunch_autocomplete { z-index:9000; } 
     
    1314    .yui-ac .yui-button button {background: url(./images/arrow-rt.png) center center no-repeat } 
    1415    .yui-ac .open .yui-button button {background: url(./images/arrow-dn.png) center center no-repeat} 
     16 
     17 
     18/* add scrolling to the endpoint options dropdown */ 
     19#endpoint_autocomplete .yui-ac-content{ 
     20    max-height:15em; 
     21    overflow:auto; 
     22    overflow-x:hidden; 
     23} 
Note: See TracChangeset for help on using the changeset viewer.