Browse by category:
|| | ||
Why are my nodes resized when I display them in a JSF environment?
This is because the
jvdf:diagrammerView component performs a "fit to contents" operation on the rendered data.
jvdf:diagrammerView always respects the CSS styling information to render the nodes and links. However, it also performs an additional fit to contents transformation to fit the rendered diagram into its defined space. It still obeys all the CSS rules, including any explicit rules on size. It is an external transformation at the end that forces everything to fit according to the contents.
You can prevent the fit to contents transformation to happen by using the
boundingBox attribute on the
jvdf:diagramerView tag. Note that prior to 8.1 release, you will not be able to specify a zoom level that is lower than the fit to contents zoom level. This limitation has been resolved in 8.1.
When using JViews 8.0 or earlier, if you have only a few nodes and you do not want them to be resized to a larger zoom factor, consider adding some extra guidance nodes to your data source. For example, if you use Designer, you can place these nodes in the corners of the desired region and fix their location. When the
jvdf:diagrammerView renders the view, it will perform the fit to contents around these guidance nodes.
To hide these extra nodes, you can make them size 1.1 or apply them the same color as the background. They will not be visually identifiable but the
jvdf:diagrammerView will respect their location during the fit to contents operation.
|Also listed in|
|Visualizations -> JViews -> Diagrammer|
|Change the font and color of a single cell or entire row in the...||Counting the number of IlvGraphic objects currently visible in...|