This is the view of the document library on the default "All Documents" tab. This is how I want the tabs to be displayed:

enter image description here

However whenever I click an option other than "All Documents" it gets shortened to only 2 options which is really annoying. I want it to stay as the original full menu showing all the tabs.

enter image description here

Can anyone help me with this? I couldn't find in the page edit settings anywhere that dealt with this. Perhaps there's a Javascript function that can sort it out?

  • Try looking at this questionhttp://sharepoint.stackexchange.com/questions/112543/how-to-display-more-than-3-views-in-document-library
    – zingwing
    Commented Apr 21, 2016 at 2:55
  • I used a method similar to the one zingwing mentioned. I used a different script though... "<script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(overrideSurfacePivotCount, 'clienttemplates.js'); function overrideSurfacePivotCount() { ClientPivotControl.prototype.SurfacedPivotCount = 8; }; </script>"
    – r00t
    Commented Apr 21, 2016 at 4:01

1 Answer 1


Try to alter the width of the Webpart or add the same number columns as in your All Documents view so that the width will be adjusted.

  • I tried that but it didn't work.
    – r00t
    Commented Apr 21, 2016 at 3:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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