New answers tagged

0

The scrollbar comes from within the iframe and is therefore inaccessible by CSS on the hosting page. You can, however, add some JavaScript to the page that is shown in the iframe, that checks the value of a custom parameter in the querystring and adds your overflow:hidden accordingly. JSRequest.EnsureSetup(); if(JSRequest.QueryString["scrollbars"] == "...


0

You can user below script in ScriptEditor webpart below your Page Viewer WebPart to make show it in full page view. <script language=”javascript”> var a = MSO_ContentTable.getElementsByTagName(“table”); MSO_ContentTable.setAttribute(“height”,“100%”); for(i=0;i<a.length;i++) { a[i].setAttribute(“height”,“100%”); } var z = document....


0

Here is a library that can help you: https://github.com/davidjbradshaw/iframe-resizer In this package there are two JS-files, one for the host (SharePoint) and one for the page that you want to show in the iframe. Once both scripts are implemented they will start to negotiate a size for the iframe so that all the content fits inside.



Top 50 recent answers are included