About fixed-size graphics when pane is resized
- Last UpdatedJul 16, 2024
- 2 minute read
Graphics created for a layout pane obtain size dimension from the pane’s size by default. The values assigned to the FixedHeight and FixedWidth properties automatically match the height and width of the pane. Graphics that are designed with its elements placed within the dimension boundaries will fit in the pane.
When the dimensions of a graphic are changed while editing in the ViewApp Editor, the following behaviors are observed:
Fixed Size Graphic Size is Greater Than Pane Size
-
When the graphic size is larger than hosted pane size, elements placed outside the pane are included in the configuration view. The graphic's size is reduced to fit it entirely within the dimensions of the pane.
-
When the FixedWidth and FixedHeight properties of a graphic match the pane size, but there are graphic elements beyond the graphic's fixed width and height boundaries, the graphic's size is reduced to fit the graphic elements outside the fixed size area within the dimensions of the pane.
Fixed Sized Graphic Size is Smaller Than Pane Size
When a graphic's fixed size is smaller than the hosted pane size, the graphic's size is increased to fit the pane size. The sizes of all of the graphic's graphic elements are increased.
Fixed Size Graphic Embedded in Another Graphic
-
The embedded fixed size graphic maintains its size configured at design time.
-
There will not be any clipping of any white space provided around primitives or embedded graphics present in the graphic.
-
There will not be any scaling of graphics. An exception to this is if the embedded graphic was resized at design time, the graphic will look scaled.