cancel
Showing results for 
Search instead for 
Did you mean: 

Removing vertical scroll bar on innerpage/content area

Former Member
0 Kudos

Hi All,

I am trying to remove extra vertical scroll bar on innerpage/content area. I followed below weblog

http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5192 ..."Those pesky scrollbars when using URL isolation"

It works if I give fixed pixels like 1000 px for inner page height.

obj = document.getElementById("isolatedWorkArea");
obj.style.height = 1000 + 'px';

But its not getting dynamic height of the content area using below code which is mentioned in the blog.

reqsize = window.frames[obj.name].document.body.scrollHeight + 100 ;
obj.style.height = reqsize + 'px';

Please advice if anybody have a solution for this.

Thanks a lot.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

First of all if you wand to remove the scroll bar you should use;

obj.style.overflow="hidden";

About dynamic height I cannot tell you if the sollution proposed on the blog is suitable for you.

Normaly you should use only:

reqsize = document.body.scrollHeight + 100 ;

In order to find out the total height of your page.

I don't understand why do you want to do all this. You will have cases when parts of the content will not be visible to the user due to these restrictions.

BR

Alex