greenerist:
Here's what I did to remove the vertical scrollbar.
-
Set the webpart height to 800px (or whatever suits your needs).
-
Locate the Div ID that wraps around the web part (example: #ctl00_ctl10_g_002108f3_8e9e_47f6_aa29_dce37c6009)
-
In a stylesheet like master.css add this line at the bottom:
#ctl00_ctl10_g_002108f3_8e9e_47f6_aa29_dce37c6009 {
overflow: hidden !important;
}
I needed a similar but different solution. Report viewer in an aspx page with just one hyperlink above the RV had
Width
="100%" Height="100%" AsyncRendering="false" SizeToReportContent="true"
but the report data almost always had scrollbars in addition to the browser's. Using F12 in IE8 I found the div with overflow:auto causing the problem with an ID like P04d35da423884a1e8480cc04e7080509oReportDiv but the guid part changed so I added
<
script language="JavaScript" type="text/JavaScript">
window.onload=
function setstart(){
var els = document.getElementsByTagName('div');
var
i = els.length;
while
( i-- )
if( els[i].id.indexOf('ReportDiv') > 0 )
els[i].style.overflow = 'visible';
}
</script>
and FINALLY it looks right.