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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.3
    • Fix Version/s: 6.5.4
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
      None

      Description

      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>
      

        Activity

        Hide
        vincentjian vincentjian added a comment -

        Fixed since 2013/8/23.

        Show
        vincentjian vincentjian added a comment - Fixed since 2013/8/23.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: