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

getBoundingClientRect() is slow in ie

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.1
    • 6.5.8, 8.0.0, 7.0.6.1
    • Browser Issue
    • Security Level: Jimmy
    • None
    • None

      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.

            jumperchen jumperchen
            JoeHuang JoeHuang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 minute
                1m