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

Biglistbox JS errors, when the Matrix model returns zero sizes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.1
    • Fix Version/s: 7.0.2
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      when a Matrix model implementation returns 0 in either of the getSize() or getColumnSize() method JS errors are caused on client side causing the whole ZK page to freeze

      	@Override
      	public int getSize() {
      		return 0;
      	}
      

      or

      	@Override
      	public int getColumnSize() {
      		return 0;
      	}
      

      error getSize = 0

      Uncaught Handle required for a viewport size:

      {viewportSize: size}

      zk.wpd:34
      zul.WScroll.c.$extends.$init zk.wpd:34
      x zk.wpd:9
      zkmax.big.Biglistbox.zk.$extends.bind_ zkmax.big.wpd:2
      zk.Widget.zk.$extends.bindChildren_ zk.wpd:18
      zk.Widget.zk.$extends.bind_ zk.wpd:18
      zk.Object.$supers zk.wpd:9
      zul.ContainerWidget.zk.$extends.bind_ zk.wpd:32
      zk.Object.$supers zk.wpd:9
      zul.wnd.Window.zk.$extends.bind_ zul.wnd.wpd:2
      zk.Widget.zk.$extends.bindChildren_ zk.wpd:18
      zk.Widget.zk.$extends.bind_ zk.wpd:18
      zk.Object.$supers zk.wpd:9
      zkmax.layout.Cardlayout.zk.$extends.bind_ zkmax.layout.wpd:17
      zk.Widget.zk.$extends.bindChildren_ zk.wpd:18
      zk.Widget.zk.$extends.bind_ zk.wpd:18
      zk.Widget.zk.$extends.bindChildren_ zk.wpd:18
      zk.Widget.zk.$extends.bind_ zk.wpd:18
      zk.Widget.zk.$extends.bind zk.wpd:18
      zk.Widget.zk.$extends.replaceChildHTML_ zk.wpd:18
      zk.Widget.zk.$extends.replaceHTML zk.wpd:18
      t zk.wpd:20
      d zk.wpd:20
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zkmax.layout.wpd:21
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zul.box.wpd:16
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zul.inp.wpd:44
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zul.wnd.wpd:13
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zkmax.big.wpd:6
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zul.utl.wpd:11
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zk.wpd:121
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zk.fmt.wpd:5
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zk.wpd:37
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function)

      error getColumnSize() = 0

      Uncaught TypeError: Cannot read property 'offsetWidth' of null zkmax.big.wpd:2
      zkmax.big.Biglistbox.zk.$extends.onSize zkmax.big.wpd:2
      n zk.wpd:12
      zk.$extends.fire zk.wpd:12
      o zk.wpd:12
      zWatch.fireDown zk.wpd:12
      zk.override.fireDown zk.wpd:15
      zUtl.fireSized zk.wpd:17
      zk.Widget.zk.$extends.replaceHTML zk.wpd:18
      t zk.wpd:20
      d zk.wpd:20
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zkmax.layout.wpd:21
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zul.box.wpd:16
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zul.inp.wpd:44
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zul.wnd.wpd:13
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zkmax.big.wpd:6
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zul.utl.wpd:11
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zk.wpd:121
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zk.fmt.wpd:5
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function) zk.wpd:37
      l zk.wpd:19
      zk.copy.setLoaded._zkf zk.wpd:19
      (anonymous function)

      expected would be to see an empty biglistbox, or optionally display an empty message as in listbox

        Attachments

          Activity

            People

            • Assignee:
              jumperchen jumperchen
              Reporter:
              cor3000 cor3000
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: