-
Bug
-
Resolution: Won't Fix
-
Normal
-
None
-
8.5.0
-
Security Level: Jimmy
-
ZK 8.5.2 S1
Current:
http://zkfiddle.org/sample/97imd8/4-listbox-percent-support
In Chrome: after hiding and re-showing a column, the width calculation for all columns is broken.
To illustrate: on fiddle, hide column2, show column 2. Column 2 now uses all of the available width while other columns are shrunk instead of following their initial sizing.
This is due do the lack of support for % based width in headerWidget _syncMeshSize. The width is always obtained from wgt and assumed to be in px.
zul.sel.Listheader.prototype._syncMeshSize
https://github.com/zkoss/zk/blob/master/zul/src/archive/web/js/zul/mesh/HeaderWidget.js#L342
In Firefox / IE:
same issue, but additionally:
If the total width of the table is not used (for example, if the sum of all columns width is 100% and one column is hidden), then the space left availble is not used by the visible components, and the hidden column rows use this space instead which makes them visible.
To illustrate: run fiddle in IE / FF, hide any column
- relates to
-
ZK-3768 resize while columns are hidden
- Closed
-
ZK-3601 FF/IE/Edge hidden column width inconsistent
- Closed
-
ZK-3622 Meshwidget columns do not sync with headers when using percent width
- Closed
-
ZK-4202 Column and cell are not alignment
- Closed
-
ZK-4666 Headers/Columns are not aligned with Cells (Grid/Listbox/Tree) in Edge/IE11
- Closed