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

Listbox will scroll in horizontal direction when navigation by keyboard

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.6, 7.0.2
    • 6.5.5
    • Components
    • Security Level: Jimmy

      Reproduce step:
      1. Select first row in listbox.
      2. Press "down" key.
      Expected: Should not see horizontal scroll.
      Actual: Horizontal scroll to right.

      <zk>
      	<zscript><![CDATA[
      	Object[] column = new Object[20];
      	List list = new ArrayList();
      	for (int i = 0; i < 100; i++) {
      		list.add("item" + i);
      	}
      	ListModelList lml = new ListModelList(list);
      	lml.setMultiple(true);
      	]]></zscript>
      	<listbox model="${lml}" checkmark="true" hflex="1" height="200px">
      		<listhead>
      			<listheader forEach="${column}" label="${forEachStatus.index}" width="100px" />
      		</listhead>
      		<template name="model" var="each">
      			<listitem>
      				<listcell forEach="${column}" label="${each}"></listcell>
      			</listitem>
      		</template>
      	</listbox>
      </zk>
      

            noahhuang noahhuang
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: