Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3791

Support column / listheader width in % with menupopup=auto

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • None
    • 8.5.0
    • Browser Issue, Components
    • Security Level: Jimmy
    • ZK 8.5.2 S1
    • None

      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

            rudyhuang rudyhuang
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Time Spent - 1 day, 3 hours Remaining Estimate - 5 hours
                5h
                Logged:
                Time Spent - 1 day, 3 hours Remaining Estimate - 5 hours
                1d 3h