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

combobox checkPopupPosition performance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.5.1.1
    • Fix Version/s: 9.6.0
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      Steps to Reproduce

      <zk>
          <button label="any event" onClick=""/>
      <!--    13.2 sec   <div forEach="${[0,1,2,3,4,5,6,7,8,9, 0,1,2,3,4,5,6,7,8,9]}"> -->
      <!--    3.7 sec  <div forEach="${[0,1,2,3,4,5,6,7,8,9]}"> -->
          1.0 sec <div forEach="${[0,1,2,3,4]}">
              <div forEach="${[0,1,2,3,4,5,6,7,8,9]}">
                  <combobox width="50px" forEach="${[0,1,2,3,4,5,6,7,8,9]}">
                      <comboitem label="yes"/>
                      <comboitem label="no"/>
                  </combobox>
              </div>
          </div>
      </zk>
      

      click the button

      Current Result

      the ui freezes after the button response depending on the number of comboboxes
      500 -> 1s
      1000 -> 3.7s
      2000 -> 13.7s

      scales roughly quadratic

      Expected Result

      at worst linear performance scaling (if at all needed)

      Debug Information

      during the first onResponse every combobox calls checkPopupPosition forcing a layout reflow

      Workaround

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Leon03 Leon03
              Reporter:
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: