Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Menu and bug/probem

Home Forums Older releases 0.9.x Menu and bug/probem

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1387
    mitrovics
    Participant

    Hello,
    i tried to use this 3level dropdown bootstrap menu and its working fine. But it have one glitch. When i mouse oever on element i get some delay or pause and i can still see dropdown menu for 1-2 sec. Try yourself -> http://www.mobilecommz.com/gonzabaucc/wp/
    also on site demo i can see that delay also. how can i remove that?
    Thank you

    #1725
    admin
    Keymaster

    Hi,
    You will need to tweak the showTimeout option which defaults to 250ms. To do so, in the “jquery.smartmenus.bootstrap.js” file you will see the following code:

    	$this.addClass('sm').smartmenus({
    
    						// these are some good default options that should work for all
    						// you can, of course, tweak these as you like
    						subMenusSubOffsetX: 2,
    						subMenusSubOffsetY: -6,
    						subIndicatorsPos: 'append',
    						subIndicatorsText: '...',
    						collapsibleShowFunction: null,
    						collapsibleHideFunction: null,
    						rightToLeftSubMenus: $this.hasClass('navbar-right'),
    						bottomToTopSubMenus: $this.closest('.navbar').hasClass('navbar-fixed-bottom')
    		})

    You just need to add the option with some desired value (50ms in this example) like this:

    	$this.addClass('sm').smartmenus({
    						showTimeout: 50,
    						// these are some good default options that should work for all
    						// you can, of course, tweak these as you like
    						subMenusSubOffsetX: 2,
    						subMenusSubOffsetY: -6,
    						subIndicatorsPos: 'append',
    						subIndicatorsText: '...',
    						collapsibleShowFunction: null,
    						collapsibleHideFunction: null,
    						rightToLeftSubMenus: $this.hasClass('navbar-right'),
    						bottomToTopSubMenus: $this.closest('.navbar').hasClass('navbar-fixed-bottom')
    		})

    Cheers!

    #1726
    mitrovics
    Participant
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘0.9.x’ is closed to new topics and replies.