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

combobox checkPopupPosition performance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 9.6.0
    • 9.5.1.1
    • Components
    • Security Level: Jimmy

      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

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

              Created:
              Updated:
              Resolved: