Long time no post, and I have plenty to post about! So lets get started with a simple one:

Problem:

You enable the tree view to be displayed on the page and the client loves it! Problem is though that the client does not like the vertical and horizontal scrollbars that are displayed as the width and height of the TreeView changes.

Solution:

  • Choose your master page where you would like to make the change and open it in your favorite editor (mine is notepad ++).
  • Look for the following tag: SharePoint:SPRememberScroll runat="server" id="TreeViewRememberScroll" onscroll="BLOCKED SCRIPT_spRecordScrollPositions(this);" Style="overflow: auto;height: 400;width: 150;  and change it to: SharePoint:SPRememberScroll runat="server" id="TreeViewRememberScroll" onscroll="BLOCKED SCRIPT_spRecordScrollPositions(this);" Style="overflow: auto;height: auto;width: auto;
  • Done!

Like I said, nice and simple and you have probably figured this out already :)