-
Bug
-
Resolution: Fixed
-
Normal
-
8.0.1
-
None
-
Security Level: Jimmy
-
None
-
ZK 8.0.2 S2
-
None
When using autopaging on tree.
The initial page size calculation will count the available space taking into consideration the height used by the paging control.
This causes the initial estimate to be correct for the paging mold, but not compared to the default mold.
If autopaging switch to default mold, the next calculations will not take the paging control into consideration.
Reproduce with the following:
Initialy uses paging mold ( "size":26 versus 27 items / 26+root)
after closing the root node, will switch to default mold.
in default mold, since the paging control is not rendered, "size":27.
when re-opening the root, all nodes fit in the page, so autopaging does not switches back to paging mold.
Expected:
- On initial sizing, if the items can fit in a single page, use default mold.
or - Always consider the paging control height when calculating page size.
<window height="700px" > <tree mold="paging" autopaging="true" vflex="1" > <treecols sizable="true" visible="true"> <treecol label="Name" hflex="1" /> <treecol label="Description" hflex="2" /> </treecols> <treechildren> <treeitem> <treerow> <treecell label="Root" /> <treecell label="Root description" /> </treerow> <treechildren> <treeitem label="Item 1" /> <treeitem label="Item 2" /> <treeitem label="Item 3" /> <treeitem label="Item 4" /> <treeitem label="Item 5" /> <treeitem label="Item 6" /> <treeitem label="Item 7" /> <treeitem label="Item 8" /> <treeitem label="Item 9" /> <treeitem label="Item 10" /> <treeitem label="Item 11" /> <treeitem label="Item 12" /> <treeitem label="Item 13" /> <treeitem label="Item 14" /> <treeitem label="Item 15" /> <treeitem label="Item 16" /> <treeitem label="Item 17" /> <treeitem label="Item 18" /> <treeitem label="Item 19" /> <treeitem label="Item 20" /> <treeitem label="Item 21" /> <treeitem label="Item 22" /> <treeitem label="Item 23" /> <treeitem label="Item 24" /> <treeitem label="Item 25" /> <treeitem label="Item 26" /> </treechildren> </treeitem> </treechildren> </tree> </window>