Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm after introducing a custom menu bar to my master page, unfortunately this has broken scrolling functionality. The code for my custom menu is:

    <ul id="Tnav" class="s4-notdlg" scroll="no">
        <asp:PlaceHolder ID="NavPlaceHolder" runat="server"></asp:PlaceHolder>
    </ul>

When I introduce this the scroll bar no longer reaches far down enough, it's too short by the same height of my custom menu, see below:

Link to scroll bar problem snapshot

Just looking for a way to fix this, would rather not resort back to using the OOTB top navigation menu, as it doesn't quite meet my needs.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

It turns out the answer to this was to declare and adjust the javascript variable g_wpadderSize in my masterpage. I had increased the size of my ribbon by putting a custom navigation bar in it and needed to set g_wpadderSize to be the extra height in pixels that my navigation bar added to the ribbon.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.