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

navbar (collapsible) changes position when selecting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.5
    • 7.0.4
    • Components
    • Security Level: Jimmy

      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>
      

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

              Created:
              Updated:
              Resolved: