Page 1 of 1

Menu Scroller - Position at selected item

Posted: 17 Mar 2017, 20:27
by sistemaslume
Just change layout.js

Code: Select all

   if(id) {
                    var menuitem = $("#" + this.expandedMenuitems[i].replace(/:/g,"\\:"));
                    menuitem.addClass('active-menu-parent');
                    menuitem.children('a,ul').addClass('active-menu');
--->>>>        $(".nano").nanoScroller({ scrollTo: $("#" + this.expandedMenuitems[i].replace(/:/g,"\\:")) });
                }  

Re: Menu Scroller - Position at selected item

Posted: 23 Mar 2017, 12:51
by aragorn
Thanks a lot for the code! Good feature! +1 ;)
But, I don't think about adding it. Unfortunately, some users may not want this enhancement on layout menu.