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

Listbox will scroll in horizontal direction when navigation by keyboard

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.5
    • Fix Version/s: 6.5.6, 7.0.2
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: