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

listbox with listgroup causes ie11 long running script warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • 7.0.8, 8.0.5
    • None
    • Security Level: Jimmy
    • ZK 8.5.2 S1, ZK 8.5.2 S2

      Steps to Reproduce

      1. run the attached zul with IE11

      Current Result

      when loading the page, IE11 gets stuck for a long time (over 10s) and show "~ is not responding due to long running script" warning

      Expected Result

      no such warning

      Debug Info

      1. every addChd() triggers zUtl.fireSized(child) and access offsetWidth too many time. So IE11 has to reflow and get stuck.
      2. chrome also get stuck for a while when loading the page

      Workaround

      apply attached js

        1. 3733.zul
          0.7 kB
          hawk
        2. fireSized.png
          51 kB
          hawk
        3. Food.java
          0.9 kB
          hawk
        4. FoodComparator.java
          0.5 kB
          hawk
        5. FoodData.java
          24 kB
          hawk
        6. FoodGroupsModel.java
          1 kB
          hawk
        7. ListboxExample.java
          3 kB
          hawk
        8. listbox-group-rendering.js
          2 kB
          hawk
        9. longRunningScript.png
          58 kB
          hawk
        10. longRunningScript2.png
          17 kB
          hawk

            CharlesQiu CharlesQiu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Time Spent - 1 day Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - 1 day Remaining Estimate - 1 day
                1d