Button Panel doesn't move to right

Hello Cuba Team

Please help us in resolving an issue i.e. I want to bring the buttons(windows action-OK/Cancel) on the top “right”,but unfortunately it is not being possible even after setting its position to TOP-RIGHT.
So,suggest me how to proceed.

1 Like

Hi,

First of all, you have to assign width AUTO and height AUTO to windowActions and move it to the first position inside the layout. Next, create the label and assign it id “spacer”. In the layout set expand to “spacer”. And finally set TOP_RIGHT align to the windowActions.

XML of the screen will be:


<layout expand="spacer"
        spacing="true">
    <frame id="windowActions"
           align="TOP_RIGHT"
           screen="editWindowActions"
           width="AUTO"></frame>
    <fieldGroup id="fieldGroup"
                datasource="clientDs">
        <column width="250px">
            <field id="title"></field>
        </column>
    </fieldGroup>
    <label id="spacer"></label>
</layout>

See also our manual on layouts here: https://www.cuba-platform.com/tutorials/screen-layout-rules

top-right-actions