How to 'Scroll To" in a Popup

Hi all
I made a popup. I try when I click on the top Group to ‘Scroll to’ the last Group in the popup, but no luck.
FYI the popup has fixed height (in px) and I embedded all groups in a Group with fixed height (in px) and ‘Allow vertical scrolling’. All embedded groups have fixed height in px.
Any idea?

Can you add an id to the last group and run this javascript action using the toolbox plugin → run javascript

document.getElementById(‘IDvalueOFlastGROUP’).scrollIntoView({
block: ‘start’ // aligns the top of the element with the top of the scrollable area
});

Recommend this plugin, been using it for a year and it works well for scroll-to-top. Have a look at this post for scroll within group.