Me

No User

You must log in to access your account.

MOSS 2007 Help and How To

Group Avatar

Group avatar

Admins

← Forum Post Reply →

  • ← Group Forum | Forum Topic Directory

    Page Viewer Web Part and Web Part Page Vertical Scroll Bar (3 posts)

  • Avatar Image Roseanne said 2 years, 3 months ago:

    Hi,

    Wondering if anyone has solved the issue with the Page Viewer Web Part vertical scroll bar IE issue. When I expose a Web Part page (with all nav hidden) in a child site using the Page Viewer Web Part, I can remove the horizontal scroll bar by setting the width of the web part wider than it is. But I can go to the max vertical/height of 32000 pixels and still can’t get rid of the vertical. The blog posts I’ve seen haven’t helped. Help? My instructor thought one of the other instructors has a fix for this. Thanks -R

  • Avatar Image Kevin Pine said 2 years, 3 months ago:

    There a few ways to deal with this. You could use an iframe inside of a content editor web part and specify no scroll. My favorite solution however is to add the following script inside the section of the target page.

    function resizeMe(that) {
    window.resizeTo(document.body.scrollWidth, document.body.scrollHeight + 30); //increase or remove the buffer (30) as needed
    }

    window.attachEvent("onload", function() {
    window.setTimeout("resizeMe()", 100);
    });

    Found this solution on David Livingston's blog: http://www.davidliv.com

  • Avatar Image Roseanne said 2 years, 3 months ago:

    Hey Thanks.

    I seem to be having better luck with html and jsp pages. By making the width or depth more than needed I eliminate the scroll bars (luckily the pages are not going to change dramatically vertically)

    My big problem is pulling in other SharePoint Web Part pages using either iFrame or Page Viewer. With the proper adjustment the horizontal goes away but I can't get rid of vertical.

    I assume that this code from David Livingston doesn't work in the of the SharePoint Master page nor in a content editor web part on the target page?

    Any other thoughts – I haven't found a blog but maybe there are others you are familiar with that I can check.

    Thanks again,
    Roseanne