Hi,
I have a PanelMenu with lot of menu items, using single selection mode. After the selection how can I scroll the menu to the selected item please? From user scope the unvisible selected menu is very confusing.
Thank you!
Hi,
I have a PanelMenu with lot of menu items, using single selection mode. After the selection how can I scroll the menu to the selected item please? From user scope the unvisible selected menu is very confusing.
Thank you!
Similar approach can be used to achieve your goal as well:
thank you, is working well. My implementation for PanelMenu:
function scrollMenuToSelectedItem(align)
{
document.querySelector("#menuid div.rz-navigation-item-wrapper-active").scrollIntoView(align);
}
The align flag must change according to the direction of movement. If the new selected menu is upper then the current menu, the flag is false, downward is true. The main menu must be expanded for proper operation or must add delay.