Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

Hello Everyone!

In one of my work i faced a problem regarding the overflow container in XHTMLB with resolution.....so i thought to share it here....

Generally the scrollbars get hidden or the page becomes very small if we change the resolution of the page........

 to overcome this its better to proceed with taking the height and width in percentages.....which will take the height and width as percentage of the whole screen rather than in pixels.

You can use pixels if you want the window in the page to be fixed and that does not change with changing resolutions.

 The sample code in BSP goes this way...

<%@page language="abap" %>

<%@extension name="bsp" prefix="bsp" %>

<%@extension name="htmlb" prefix="htmlb" %>

 <htmlb:content id = "content"      design = "classic+design2002+design2003"       controlRendering = "sap"      rtlAutoSwitch = "true" >

<htmlb:page marginLeft=" 2"        marginRight=" 2"      marginTop=" 2"     marginBottom=" 2"       reposition="TRUE"        scrolling = 'NO' >

<htmlb:form id = "Document"    method = "POST" >

<%@ extension name="xhtmlb" prefix="xhtmlb" %>

<xhtmlb:overflowContainer height = '45%'  id = "TEST"  mode = "SCROLL">

<%@include file="document_header.htm" %>

<%@include file="document_buttons.htm" %>

</xhtmlb:overflowContainer>

<bsp:call url="body.do">

</bsp:call>     </htmlb:form>     </htmlb:page>        </htmlb:content>

  • No labels