nativebar=false causes "after mounting error"

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Blocker
    • 8.6.1
    • Affects Version/s: 8.5.2, 8.6.0
    • Component/s: None
    • Security Level: Jimmy
    • None
    • ZK 8.6.1 S1
    • None

      Steps to Reproduce

      1. set library property org.zkoss.zul.nativebar with false
      2. run the zul below

          <listbox>
              <listhead>
                  <listheader label="Client" hflex="min"/>
              </listhead>
              <listitem>
                  <listcell label="aaa" hflex="min"/>
              </listitem>
          </listbox>
      

      Current Result

      Uncaught TypeError: Cannot read property 'firstChild' of null
      at _calcMinWd (zul.mesh.wpd:62)
      at init._calcMinWds (zul.mesh.wpd:1430)
      at init.beforeMinFlex_ (zul.mesh.wpd:2917)
      at Object.fixMinFlex (zk.wpd:27771)
      at Object.fixFlex (zk.wpd:27661)
      at init.onSize (zk.wpd:27566)
      at _invoke (zk.wpd:15020)
      at init.fire (zk.wpd:15003)
      at _fire (zk.wpd:15146)
      at Object.fireDown (zk.wpd:15363)

      Then show

      Error code 3: ZK error, after mounting.

      Something went wrong while loading the page.

      Please try to reload or visit another page. If you are the administrator, try to check your Javascript or Network console.

      Expected Result

      no error.

      Debug Information

      it seems non-nativebar usually causes problems, do we consider to deprecate this property?

      Workaround

      set nativebar to true.

            Assignee:
            Leon03
            Reporter:
            hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Time Spent - 2 days Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - 2 days Remaining Estimate - 1 day
                2d