Screen jumping to the top of the page

Certified Associate Developer

Hello,

I have a column layout at the bottom of the page. In one column I display folders which I get from an integration of a sharepoint folder. The next column are the files located inside the selected folder. The final column gets the selected document and displays the preview. All good until I added a button which is supposed to hide the first two columns and sets the document preview height to "TALL". The functionality is meant to enlarge the preview and it does, however every time I click on this button the screen jumps to the top of the page. When preview is enlarged I also have the "back" button which reverses this action and again the screen jumps to the top. What is going on here?

One more thing: Even if I scroll up after clicking (which is easily done since Appian+Sharepoint is so slow) so none of the columns are on my screen it still jumps to the top.

  Discussion posts and replies are publicly visible