How to Configure Dimensions
π― Learn how to set or adjust the width and height of any element in AVStudio.
This guide explains how to work with different measurement units, apply dynamic values, and understand how sizing behaves across responsive layouts.
π Locating the Dimensions
Sectionβ
- Open the page or subpage where the element is placed.
- Select the element in the
Editor
workspace. - In the properties panel on the right, scroll down and expand
Dimensions
.
π Setting Width
and Height
β
- Under
Dimensions
, enter numeric values forWidth
andHeight
. - Each field includes a dropdown for selecting units:
px
(pixels) or%
(percentage). - Choose
px
for fixed dimensions or%
for relative sizing based on container width or height.
π When using percentages, the elementβs size adjusts relative to its parent container. This is useful for responsive layouts.
π Using Dynamic Valuesβ
- Click inside the
Width
orHeight
field to activate the dynamic input option{β}
. - You can assign a variable, parameter, or state value to make the dimension change automatically.
- Use the
fx
icon if you need to apply a post-processing function to modify the bound value before rendering.
π Dynamic values let elements resize automatically based on external data or system feedback.
π Key Pointsβ
- Use
px
for fixed sizing and%
for responsive design. - Dynamic inputs (
{β}
) make dimensions flexible and data-driven. - Dimension settings can be inherited from parent containers in nested layouts.
- You can reset or override inherited values directly in each elementβs panel.
β Frequently Asked Questions (FAQ)β
Can I mix px
and %
values for width and height?
Yes. For example, you can set the width in %
for responsiveness while keeping height fixed in px
.
What happens if I leave a field empty?
The element inherits its size from its parent container or default layout configuration.
Can dynamic values override static ones?
Yes. When a dynamic value is applied, it takes priority over any manually entered number.