Steps to Reproduce
<listbox viewModel="@id('vm')@init('org.zkoss.reference.component.data.MultipleSelectionVM')" model="@load(vm.model)" rows="10" selectedItems="@bind(vm.selectedItems)"> <listhead> <listheader label="listbox header"/> </listhead> <template name="model"> <listitem label="${each}"/> </template> </listbox>
1. open chrome developer tool / enable device toolbar
2. select "iPad"
3. scroll down to select 30th item
Current Result
Listbox scrolls up to the first item
Expected Result
keep the current scroll position
debug info
- .z-focus-a doesn't move to the position of the selected listitem.
- _syncFocus() in listbox-touch.js doesn't move the focus element's position but _syncFocus() in SelectWidget.js moves the position.
workaround
attached js
- relates to
-
ZK-4109 listbox changes scroll position on selection (huge ROD)
- Closed