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

listbox with listgroup causes ie11 long running script warning

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.8, 8.0.5
    • Fix Version/s: 8.5.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S1, ZK 8.5.2 S2

      Description

      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

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                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