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

zul.sel.Listbox.setSelInView() tries to access non-existing DOM element

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • 8.5.1.2
    • ZK Client Engine
    • Security Level: Jimmy
    • None
    • ZK 8.5.2 S2

      binding listbox within (not yet opened) bandbox causes uncaught TypeError: Cannot set property 'scrollTop' of null
      at init.setSelInView_ (zk.wpd:38712)
      at Function._set2 (zk.wpd:11067)
      at init.setter.func (zk.wpd:19291)
      at init.zk.Widget.zk.$extends.set (zk.wpd:19319)
      at Object.setAttr (zk.wpd:26935)
      at doProcess (zk.wpd:25462)
      at doCmdsNow (zk.wpd:25561)
      at Object._doCmds (zk.wpd:25889)
      at Object.afterResponse (zk.wpd:26386)
      at XMLHttpRequest._onResponseReady (zk.wpd:26250)

      Seems to be a side-effect of ROD, because after opening bandbox once, error does not appear again. We analyzed, that before opening bandbox, zul.sel.Listbox.setSelinView() is called for a listbox widget, which does not yet have a corresponding DOM element (this.ebody is undefined).

            CharlesQiu CharlesQiu
            fse fse
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 2 hours, 30 minutes Remaining Estimate - 5 hours, 30 minutes
                5h 30m
                Logged:
                Time Spent - 2 hours, 30 minutes Remaining Estimate - 5 hours, 30 minutes
                2h 30m