Hey friends, first time coding here. In my project, when a button is clicked a container box expands and the page scrolls to the top of the box (using scrollTo). The scrolling goes to the wrong place when the page height is too small. How can I order the operations so that the scrollTo won’t run until the box expansion is completed? Thanks!
export function Button_click(event) {
$w( ‘#Container’ ).expand();
wixWindow . scrollTo ( 0 , 500 );
}