-
Bug
-
Resolution: Fixed
-
Normal
-
8.5.2.1
-
ZK 8.6.2 S2
-
None
Steps to Reproduce
<zk> <zscript><![CDATA[ List list = new ArrayList(); for (int i = 0; i < 100; i++) { list.add("item" + i); } ListModel listModel = new SimpleListModel(list); ]]></zscript> <window height="100%" width="100%"> <div vflex="1"> </div> <div align="center"> <button label="Click to Popup" popup="mypopup"/> </div> <popup id="mypopup" width="380px"> <listbox rows="10" model="${listModel}"> <listhead> <listheader label="Header" sort="auto" /> </listhead> </listbox> </popup> </window> </zk>
- Click the button
- Scroll the listbox to trigger a ROD loading
Current Result
The popup is repositioned.
Expected Result
The popup shouldn't be repositioned.
Debug Information
A side effect of ZK-4030.
The popup is repositioned due to listbox rows="10", the _adjustTop should be updated.
https://github.com/zkoss/zk/blob/v8.6.1/zul/src/archive/web/js/zul/wgt/Popup.js#L162
Workaround
- Put <popup> outside the <window>
- Replace <window> with <div> or <panel>
- relates to
-
ZK-4030 popup loading overlay in wrong position
- Closed