If a container is nested within a parent, and its metrics_mode is set to relative, it seems to use the top-left corner of the parent container as its origin, but all "distance" values are relative to the whole screen. This includes, top, left, width and height values.
Example:
Code: Select all
container Panel(Battery_Indicator)
{
metrics_mode pixels
left 20
top 20
width 100
height 100
material RotaryIndicator1
container Panel(Battery_Indicator/Amps)
{
metrics_mode relative
left 0.1
top 0.1
width 0.8
height 0.2
}
}
If this is the intended behavior, please disregard this report.
- Rob