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)
  • You must be logged in to reply to this topic.

Register

You will be emailed a link to set your password.

Login

Lost password?