Skip to main content
 

Set a webpart to use the full viewport height

Today I wrote a bit of code that will set a webpart to use up all available height in a SharePoint page.

  1. If required, convert the page to a Blank WebPart Page or any other type that allows multiple webparts.
  2. Add a Script Editor web part with the code below, changing the elementID passed into SvdSetElementFullHeight with your element's ID attribute.

http://gist.github.com/svandragt/cbbd138d15f61fb71df9/7d07c53a3dfaa011005b5158e09bcfdd98312099