Page tree
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 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" %>


<bsp:call url="">

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

  • No labels