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

Frozen with paging and columns without size definition displayed blank after page change

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.0
    • Fix Version/s: 8.5.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.1 S1

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              DevChu DevChu
              Reporter:
              MDuchemin MDuchemin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 7 hours
                  7h