-
Bug
-
Resolution: Fixed
-
Normal
-
8.5.0
-
None
-
Security Level: Jimmy
-
None
-
ZK 8.5.1 S1
-
None
Steps to Reproduce
Run fiddle:
http://zkfiddle.org/sample/3op5ibq/1-Frozen-static-columns-disapear
drag the frozen listbox scrollbar to any position other than initial.
using paginitation to go to a another page
Note: also affect smooth scrolling
Current Result
Columns without sizing information disapear
Expected Result
Paging shouldn't cause the columns to disapear
Debug Info
caused by columns having no sizing information and no initial size, which leads the Frozen.doScrollNow_() method to incorrectly calculate a width of 0px for these columns
Root Cause
in this for loop in the cellWidth variable default to 0 if no sizing is given instead of the default width.
https://github.com/zkoss/zk/blob/f244e4ddc14b627616d92449c6759641b7afb07f/zul/src/archive/web/js/zul/mesh/Frozen.js#L339
Workaround
use hflex='min' on these columns to have the same presentation, but including column sizing info.
- relates to
-
ZK-4567 Treechildren with frozen onResponse trigger unexpected resize
- Closed