Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1900

Auto-complete Combobox in the bottom of the browser doesn't sync dropdown position well

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.4
    • 6.5.3
    • Components
    • Security Level: Jimmy
    • None

      http://screencast.com/t/uZgi1AVxcunu

      <zk>
      	<zscript><![CDATA[
      		class ItemComparator implements Comparator {
      			public int compare(Object text, Object label) {
      			    String val = text.toString().toLowerCase();
      		
      			    if (val.isEmpty()) return 0;
      			    return label.toString().toLowerCase().startsWith(val)? 0: -1;
      			}
      		}
      		
      		List list = new ArrayList();
      		list.add("01");
      		list.add("02");
      		list.add("03");
      		ListModel model = ListModels.toListSubModel(
      				new ListModelList(list), new ItemComparator(), 10);
      	]]></zscript>
      	<div height="900px"></div>
      	<combobox model="${model}" 
      		autodrop="true" autocomplete="false">
      	</combobox>
      </zk>
      

            RaymondChao RaymondChao
            jimmyshiau jimmyshiau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: