Set the relative size of the Diagrammer in JSF

Article ID: 2352
Last updated: 29 May, 2018
Article ID: 2352
Last updated: 29 May, 2018
Revision: 3
Views: 514
Posted: 13 Sep, 2010
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How to set the relative size of the Diagrammer in JSF?

Answer

You specify the width and height of the JSF diagrammerView tag in percentage. For example:

However by using CSS, you need to ensure that you set the sizes in percentage of the entire DOM branch. If you only set the diagrammer in percentage and the parent container is not set, the browser will not display the diagrammer properly as it will not be able to compute its concrete size.

The attached zip contains files for the "jsf-diagrammer-editing" sample which is located in the distribution under "samplesdiagrammer". Replace the files in the sample with the attached ones. Refer to the documentation under the section "Samples and code examples > Starting the samples" for instructions on how to build and run sample. The modified sample demonstrates the above technique.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2352
Last updated: 29 May, 2018
Revision: 3
Views: 514
Posted: 13 Sep, 2010 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Attached files

Also listed in


Others in this category