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

JS errors : frozen with auxheaders (+ rowspan)

    XMLWordPrintable

    Details

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

      Description

      Steps to Reproduce

      run the attached example

      Current Result

      2 JS errors appear in the console

      Uncaught TypeError: Cannot read property 'style' of undefined
          at zk.wpd:59370
      (anonymous) @ zk.wpd:59370
      setTimeout (async)
      visible @ zk.wpd:59360
      (anonymous) @ zk.wpd:11275
      _set2 @ zk.wpd:12250
      setter.func @ zk.wpd:20814
      zk.Widget.zk.$extends.set @ zk.wpd:20842
      create @ zk.wpd:26292
      create @ zk.wpd:26304
      create @ zk.wpd:26304
      create @ zk.wpd:26304
      mtBL @ zk.wpd:26111
      zkx @ zk.wpd:26379
      zkmx @ zk.wpd:26407
      (anonymous) @ listbox.zul:16
      
      zk.wpd:49802 Uncaught TypeError: Cannot read property 'colSpan' of undefined
          at init._findFrozenCols (zk.wpd:49802)
          at init._syncColumnBorders (zk.wpd:49781)
          at init.bind_ (zk.wpd:49445)
          at init.bindChildren_ (zk.wpd:22654)
          at init.bind_ (zk.wpd:22617)
          at init.$supers (zk.wpd:12954)
          at init.bind_ (zk.wpd:57956)
          at init.$supers (zk.wpd:12954)
          at init.bind_ (zk.wpd:62674)
          at init.$supers (zk.wpd:12954)
      _findFrozenCols @ zk.wpd:49802
      _syncColumnBorders @ zk.wpd:49781
      bind_ @ zk.wpd:49445
      bindChildren_ @ zk.wpd:22654
      bind_ @ zk.wpd:22617
      $supers @ zk.wpd:12954
      bind_ @ zk.wpd:57956
      $supers @ zk.wpd:12954
      bind_ @ zk.wpd:62674
      $supers @ zk.wpd:12954
      bind_ @ zk.wpd:63979
      bindChildren_ @ zk.wpd:22654
      bind_ @ zk.wpd:22617
      $supers @ zk.wpd:12954
      bind_ @ zk.wpd:37891
      $supers @ zk.wpd:12954
      bind_ @ zk.wpd:50975
      bindChildren_ @ zk.wpd:22654
      bind_ @ zk.wpd:22617
      bind @ zk.wpd:22535
      replaceChildHTML_ @ zk.wpd:22266
      replaceHTML @ zk.wpd:22101
      mtBL0 @ zk.wpd:26151
      mtBL @ zk.wpd:26122
      zkx @ zk.wpd:26379
      zkmx @ zk.wpd:26407
      (anonymous) @ listbox.zul:16
      setTimeout (async)
      zkx @ zk.wpd:26385
      zkmx @ zk.wpd:26407
      (anonymous) @ listbox.zul:16
      

      Expected Result

      no errors

      Debug Information

      removing the visible="false" on the <listhead> element avoids 1st error

      reducing the frozen columns from 3 to 2 avoids the 2nd error from 9.0.0 on

      Workaround

      attached patch patch-ZK-4563.js.txt

        Attachments

          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: