Pages

Friday, August 27, 2010

Removing the inactive scroll bar in page viewer web parts

This has been posted before, but there are still lots of references to this not being possible…


When using a page viewer web part to display a target page, the scroll bars can be removed by making the web part the same size or larger. However often there is a greyed out/inactive scroll bar still visible on the right hand side.

To remove the inactive scroll bar modify your target page and change any scoll=”yes” in favour of scroll=”no”.

Note if you are targeting a sharepoint page this usually requires a change to the master page too.

This usually sorts out IE. Firefox also wants you to add the following before it will not show the inactive scroll bar.

style="overflow: visible;height:176px"
where 176 is the height of your page content.