navbar (collapsible) changes position when selecting

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 7.0.5
    • Affects Version/s: 7.0.4
    • Component/s: Components
    • Security Level: Jimmy
    • None

      run the zul file:
      open the initially collapsed navbar, and select a navitem
      -> the navitems will align to the left (only happens the first time a navitem is selected)

      <zk>
          <navbar orient="vertical" width="50px" collapsed="true">
              <nav label="Get Started" iconSclass="z-icon-th-list">
                  <navitem label="One"/>
                  <navitem label="Two"/>
              </nav>
          </navbar>
      </zk>
      

      a (hard coded)workaround is to reset the x position of the nav in a client side listener

      <zk xmlns:w="client">
          <navbar orient="vertical" width="50px" collapsed="true">
              <nav label="Get Started" iconSclass="z-icon-th-list" w:onOpen="this.$n('cave').style.left = '37px'">
                  <navitem label="One"/>
                  <navitem label="Two"/>
              </nav>
          </navbar>
      </zk>
      

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

              Created:
              Updated:
              Resolved: