Size of box

Hi,

Very simple question I can't figure out the answer to.

I'd like to increase the size of the text box that pops up on the screen when at item is automatically invoiced through customer orders.

 

I think it's an archetype, but can't figure out where.

Thanks,

Greta

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Size of box

This is controlled by default.stylesheet, via the style:

<style name="InformationMessage" type="nextapp.echo2.app.WindowPane">
    <properties>
        <property name="titleHeight" value="0px"/>
        <property name="border">
            <fill-image-border content-insets="3px" border-insets="3px" color="#7b68ee">
            </fill-image-border>
        </property>         
    </properties>
</style>

 

You can customise this by creating a file named site.stylesheet, located in <TOMCAT_HOME>/webapps/openvpms/WEB-INF/classes/style, containing the following:

<stylesheet>

    <style name="InformationMessage" type="nextapp.echo2.app.WindowPane">
        <properties>
            <property name="titleHeight" value="0px"/>
            <property name="border">
                <fill-image-border content-insets="3px" border-insets="3px" color="#7b68ee">
                </fill-image-border>
            </property>
            <property name="width" value="${InformationDialog.Compact.width}"/>
        </properties>
    </style>

</stylesheet>

The InformationDialog.Compact.width property comes from <TOMCAT_HOME>/webapps/openvpms/WEB-INF/classes/style/default.properties and is defined as:

InformationDialog.Compact.width = 35 * $font.size

which calculates as 420 pixels on screen sizes >= 1024x768.

You can give the width a fixed pixel value e.g.:

           <property name="width" value="500px"/>

Note that this has been improved in subsequent releases, and this change shouldn't be required.

Re: Size of box

Great! Thanks Tim

Syndicate content