Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

table cell views are not right aligned

Tags:

I am trying to right-align my table cells.

simulator

I have set 'Semantic' property to 'Force Right-to-Left' value through the whole visual tree.

Desired layout:

Desired state

Visual tree:

Visual tree

There aren't any visual definitions in code...

EDIT:

After @dirtydanee suggestion:

trailed

like image 891
Dorad Avatar asked Jul 16 '17 08:07

Dorad


1 Answers

Stack view configuration

For your stack view you should have alignment set to Leading to make it start at the leading position for your language, which is the right most side for you. Then you set Semantic to Force Right-to-Left.

It is important that you have tied the stack views edges to it's container's edges, so that the stack view will size to it's container. It is also important that you let the labels have dynamic size. Both of these conditions seems to be met in your code, although it is not entirely clear.

like image 150
LGP Avatar answered Oct 12 '22 10:10

LGP