| | | | Browse by category |
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.