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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.1
    • 8.5.0
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.5.1 S1

      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.

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

              Created:
              Updated:
              Resolved:

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