Hi
I have a document library which has multiple folders of treeview library. When I scroll down and select a folder, the files will be displayed on the right panel and files are not visible onclick folder(need to scroll up to retrive all files). I want to scroll top of the library automatically when I click the bottommost folders, so files inside the folder is visible without scrolling for end user.
I know that sharepoint master page does not let me set the Y axis and even if I target body, it always return '0'. I did a research and need to usedocument.getElementById("s4-workspace").scrollTop however, I could not get this work. So far, I tried 2 different ways to adding this script. 1. Using Content editor webpart on the document library page. 2. Add the Javascript atAllitems.aspx page under "Placeholdermain" None of those worked.
I also tried approach explained @ http://stackoverflow.com/questions/19351563/jquery-scroll-element-to-top-of-page-by-clicking-anchor-inside-element-or-anyw and no luck.
Will you please assist me on scrolling top of the document library page, when I click sub folders from the bottom of the page? This will help user to see the files inside the folder without scrolling top manually.
Thanks much,
Shri