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

nativebar=false causes "after mounting error"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 8.5.2, 8.6.0
    • Fix Version/s: 8.6.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.6.1 S1

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  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