-
Bug
-
Resolution: Fixed
-
Normal
-
5.0.7.1
-
None
<zk>
<div>
setSelectedIndex not scroll the selectedItem in onCreate of afterCompose, but work in au
</div>
<hlayout>
<button label="select1" onClick="listbox.setSelectedIndex(200);" />
<button label="select2" onClick="listbox.setSelectedIndex(400);" />
<button label="select3" onClick="listbox.setSelectedIndex(600);" />
</hlayout>
<listbox id="listbox" width="300px" height="300px" onCreate="listbox.setSelectedIndex(500);"></listbox>
<zscript><![CDATA[
List list = new ArrayList();
for (int i = 0; i < 1000; i++)
ListModelList model = new ListModelList(list);
listbox.setModel(model);
]]></zscript>
</zk>
- relates to
-
ZK-273 Listbox's scrollbar will jump to the selectedItem even if the selectedItem's viewport is visible
- Closed