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

navbar (collapsible) changes position when selecting

    Details

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

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: