Configuring the size of the SAP integrator portlet
By default, the IBM® WebSphere® Portal Integrator for SAP portlet is sized automatically. By alternative, you can control the size of the portlet by using CSS styles.
About this task
The integrator portlet displays an HTML iframe element
in its view mode. You can configure the integrator portlet to either
resize the iframe automatically , or you can provide CSS styles to
control its size. The automatic resize function displays the iframe
with 100 percent width of the portlet view container. The portal calculates
its height dynamically based on the current height of the browser
window. If you want to determine the best size for your SAP NetWeaver Portal views,
you can override the automatic resizing. To do this, set the following
preference:
- integrationDivStyle = "css_style_properties"
- Use this preference to define CSS styles that control the size
and behavior of the <div> element in which the
iframe is embedded. This preference provides flexible control of the
size of the iframe. The integrator feature writes the value specified
by this preference to the markup as follows: <div style="css_style_properties">.
For example, these values yield these results:
- height:500px;width:800px;
- This value sets the iframe to a static size of 800 by 500 pixels.
- height:100%;width:800px;
- This value sets the height to 100% of the portlets view area and the width to 800 pixels.
- height:500px;width:800px;overflow:scroll;
- This value sets the iframe to a static size of 800 by 500 pixels and defines the overflow property as scroll. If the iframe content is larger than the portlet container, scroll bars are displayed.