+

Search Tips   |   Advanced Search

Configure the behavior of toolbar tabs

Use page parameters to configure the height of your toolbar tabs, and how the toolbar tabs respond to resizing events in the browser.

We can set the page parameters for the site toolbar by selecting the Edit Page Properties icon for the hidden page Toolbar Content Root. Expand Advanced options and select I want to set parameters. Use the following parameters to control the size of the toolbar tabs.

    ibm.portal.toolbar.reloadOnResize = true | false

    Use this configuration parameter to indicate whether we want the toolbar tab to be reloaded automatically if a resize event occurs in the browser. Depending on how the content is rendered, it might be useful to set this parameter to true. Defaults to false. For example:
    <parameter name="ibm.portal.toolbar.reloadOnResize" type="string"
    update="set"><![CDATA[true]]&gt;</parameter>

    ibm.portal.toolbar.minHeight = floating point number

    Use this configuration parameter to specify the minimum height factor of the toolbar tab. The value must be greater (or equal) than 0.2 and less (or equal) than 0.9. The factor is relative to the available viewport height on the client. A value of "0.3" for example means the toolbar tab must at least consume 30 percent of the available viewport height. This configuration parameter must be combined with the ibm.portal.toolbar.maxHeight parameter that is explained next. For example,
    <parameter name="ibm.portal.toolbar.minHeight" type="string"
    update="set"><![CDATA[0.35]]&gt;</parameter>

    ibm.portal.toolbar.maxHeight = floating point number

    Use this configuration parameter to specify the maximum height factor of the toolbar tab. The value must be greater than or equal to the value specified for the minimum height. It must not be greater (or equal) than 0.9. The factor is relative to the available viewport height on the client. A value of "0.75" for example means the toolbar tab must not consume more than 75 percent of the available viewport height. This configuration parameter must be combined with the previous ibm.portal.toolbar.minHeight parameter. For example,
    <parameter name="ibm.portal.toolbar.maxHeight" type="string"
    update="set"><![CDATA[0.7]]&gt;</parameter>

If the values of the configuration parameters ibm.portal.toolbar.minHeight and ibm.portal.toolbar.maxHeight are equivalent, the toolbar framework enforces this height, regardless of the size of the tab content being loaded.


Parent Prepare the site toolbar