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

JS error when resizing after adding column and invalidate

XMLWordPrintable

      Steps to Reproduce

      run the attached example
      1. click the button "add listheader + invalidate listhead"
      2. resize a column

      Current Result

      The following JS error is logged in the JS console:

      zul.mesh.wpd:2440 Uncaught TypeError: Cannot read property 'style' of undefined
          at Object._aftersizing [as endeffect] (zul.mesh.wpd:2440)
          at init._finishDrag (zk.wpd:13724)
          at init._endDrag (zk.wpd:13789)
          at HTMLDocument._docmouseup (zk.wpd:13403)
          at HTMLDocument.dispatch (zk.wpd:5157)
          at HTMLDocument.elemData.handle (zk.wpd:4828)
      

      Expected Result

      no error

      Debug Info

      the error only happens if invalidate() is called on the <listhead> in the same response

      Root Cause

      the faker <col> are not updated and get out of synch with the <th>

      Workaround

      not calling invalidate() avoids the error

            rudyhuang rudyhuang
            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 - 1 day, 1 hour
                1d 1h