Menu Scroller - Position at selected item

Post Reply
sistemaslume
Posts: 10
Joined: 17 May 2016, 19:13

17 Mar 2017, 20:27

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,"\\:")) });
                }  

User avatar
aragorn
Posts: 2557
Joined: 29 Jun 2013, 12:38

23 Mar 2017, 12:51

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.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest