The navigation tree (where the folder hierarchy is represented) in O-DL, already has a setting (through the module settings) to allow horizontal scroll. However, there is no setting to allow for vertical scroll in case the list of folders is too long. In this article we will show you how to add one.
To add a Vertical scrollbar to the navigation tree, you will have to go to your portal installation, and open the following file for edit:
DNNRoot/DesktopModules/XSDocumentLibrary/XSDocumentLibrarty.ascx
Once the file is opened in an editor (notepad will do), look for the element with id="divTree". It will look somethink like this:
<div id="divTree" runat="server">
you will need to add a couple of style elements that will allow the scrollbar to show, and will define the height you want to assign the navigation Menu. In the end, the above tag should end-up lookin something like this:
<div id="divTree" runat="server" style="overflow-y:auto; height:200px;">
You can adjust the height value to best suit your needs.
Save your changes, and refresh the browser. The tree should now have a verical scrollbar if the height of the folders is more than the height you set in the style element.