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

Popup position not properly fixed in listbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 6.5.6, 7.0.2
    • 6.5.5
    • None
    • Security Level: Jimmy
    • None

      Reproduce:
      Use test.zul and TestVM.java in reproduce.zip attached, there are two issues:
      1. Scroll browser window is very slow.
      2. Open a Datebox or Combobox, the position of popup is out of sync after scroll Listbox.

      Cause:
      1. Scroll browser window triggered onScroll of Datebox/Combobox, and applys the fix to "Each" Datebox/Combobox even their popup is not opened.
      2. Scroll Listbox does not trigger onScroll of Datebox/Combobox so no fix is applied.

      Workaround:
      Override onScroll of Datebox/Combobox (in this case), only apply the fix to a Datebox/Combobox which has an opened popup,
      also override _doScroll of Listbox to fire onScroll event to its children.
      Please refer to test.zul in workaround.zip attached.

        1. reproduce.zip
          0.9 kB
        2. workaround.zip
          0.9 kB

            jumperchen jumperchen
            benbai benbai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: