Genero Desktop Client 2.21 New Features / Widgets: Genero Desktop Client 2.21 New Features |
Image fields now support an "alignment" style attribute to define where the image should be located in a larger container.
Image field now supports style attribute "alignment" to define where the picture should be located when the container (widget) is bigger.
<Style name="Image.centered"> <StyleAttribute name="alignment" value="center"/> </Style> <Style name="Image.bottomright"> <StyleAttribute name="alignment" value="bottom right"/> </Style>
When the attribute autoscale is set, alignment will only be applied on the direction which does not fill the widget. By default, alignment will be like "top left" in previous versions.