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

MeshWidget auto col sizing only working once

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.5
    • Fix Version/s: 8.5.0
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      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

        Attachments

        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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

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