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

getBoundingClientRect() is slow in ie

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.8, 8.0.0, 7.0.6.1
    • Fix Version/s: 8.0.1
    • Component/s: Browser Issue
    • Security Level: Jimmy
    • Labels:
      None

      Description

      the problem is reproduced in zk fiddle:
      http://zkfiddle.org/sample/2h2q4u2/6-Performance-problem-with-TreeDataEvent-INTERVAL-REMOVED

      click "Remove a bunch of tree items" button in ie. It will take a long time to remove tree items.

      Workaround:
      setting mold="paging" with a large page size will avoid the problem (by automatically calling invalidate() on the tree)

      We do some profiling and find most of time are spent on getBoundingClientRect(). In IE getBoundingClientRect() takes ~10x as long as chrome.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jumperchen jumperchen
              Reporter:
              JoeHuang JoeHuang
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1 minute
                  1m