[ 3 posts ]

Tim Greenwood

  • Username: tim_greenwood
  • Joined: Thu Feb 11, 2010 9:09 am
  • Posts: 10
  • Offline
  • Profile

Can't seem to get the menu's scrollincrement to work.

Post Posted: Mon Mar 29, 2010 8:48 am
+0-
I'm creating a button with a menu as follows but no matter what I set the scrollincrement to it doesn't affect the scroll speed. I've tried 2, 5, 10, even 50.

hierMenu3_9_then_Button = new YAHOO.widget.Button({ type: "menu", label: "", name: "hierMenu", scrollincrement: 5, menu: sa_hiermenu3_9_then_items, container: this});

Am I not using it correctly? It is listed as a config parameter just like 'menu' and 'container' so I'd assume this is correct.

John Mathews

  • Username: Lyric8
  • Joined: Fri Jul 31, 2009 9:25 am
  • Posts: 5
  • Offline
  • Profile

Re: Can't seem to get the menu's scrollincrement to work.

Post Posted: Tue May 18, 2010 10:19 am
+0-
I am doing the same thing with YUI Menu to speed up the scroll rate when the menu is too large for the screen. It doesn't seem to speed up at all.

Max Pinton

  • Username: maxgraphic
  • Joined: Mon May 24, 2010 3:21 pm
  • Posts: 4
  • GitHub: max
  • Gists: max
  • Offline
  • Profile

Re: Can't seem to get the menu's scrollincrement to work.

Post Posted: Thu Jun 17, 2010 10:24 pm
+0-
I've been struggling with this too and finally figured out a solution. Just add:

hierMenu3_9_then_Button.getMenu().cfg.setProperty("scrollincrement", 4);

Hope this helps!
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum