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

Wrong rendering of collapsed navbar with pre-selected menuitem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.4.1
    • Fix Version/s: 8.6.1
    • Component/s: ZK Client Engine
    • Security Level: Jimmy
    • Labels:
    • Environment:

      IE11

    • gh.sprint.customfield.default.name:
      ZK 8.6.1 S1

      Description

      Steps to Reproduce

      Run Fiddle: http://zkfiddle.org/sample/3in3jc4/1-collapsed-navbar-with-selected-sub-menuitem-bug
      Hover your cursor over the "BA" or "BB" entries and see the menu entries jumping to their correct positions.

      Actual Result

      Initial rendering of a navbar menu structure is incorrect having a pre-selected sub menuitem.
      It does not match the "collapsed style"

      Expected Result

      no initial animation, hidden <navitem>s

      Debug Info

      in collapsed mode the <navitem>s are only visible when hovering the parent <nav> element
      <child>navitems don't affect the height/width of the surrounding <navbar>

      Workaround

      <script><![CDATA[
      /*workaround for ZK-3609*/
      zk.afterLoad('zkmax.nav', function() {
      	var xNav = {};
      	zk.override(zkmax.nav.Nav.prototype, xNav, {
      		open : function() {
      			//don't open the top most <nav> widgets when collapsed
      			if(!this.getNavbar().isCollapsed() || !this.isTopmost()) {
      				xNav.open.apply(this, arguments);
      			}
      		}
      	});//zk.override
      });//zk.afterLoad
      ]]></script>
      

        Attachments

          Activity

            People

            Assignee:
            rudyhuang rudyhuang
            Reporter:
            CJahn CJahn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h