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

MeshWidget auto col sizing only working once

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.0
    • 8.0.5
    • Components
    • Security Level: Jimmy

      Steps to Reproduce

      run either attachment of grid-auto-size.zul, listbox-auto-size.zul, treecol-auto-size.zul (issue is the same for all MeshWidgets)
      1. double click the column resizer of any column
      2. double click the column resizer of a different column

      Current Result

      1. the column auto-sizes to the minimum width
      2. the other column does not auto-size and stays at its original width

      Expected Result

      when double clicking a column resizer the column width should always auto fit

      Debug Info

      (this used to work in ZK 7)

      • resizing a column manually and then double clicking its resizer several times leads to alternating width between the original and the manually resized width
      • Listbox listheader also has such bug

      Root Cause

      the cached minimum widths for each HeaderWidget are not reset before auto sizing

      Workaround

      applying the attached patch meshwidget-auto-size-patch-ZK-3660.js globally will fix this issue

        1. grid-auto-size.zul
          0.6 kB
          cor3000
        2. listbox-auto-size.zul
          0.6 kB
          cor3000
        3. meshwidget-auto-size-patch-ZK-3660.js
          0.5 kB
          cor3000
        4. treecol-auto-size.zul
          0.8 kB
          cor3000

            DevChu DevChu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h