# UIComponent.rx [← UIComponent](index.md) · [← Master](../../wiki.md) rx(float value) UIComponent Set X relative in percents to parent component. --- rx(float value, int offset) UIComponent Set X relative in percents to parent component with offset.