grid-layout: Fix attach position for horizontal orientation
Switch the attach position. A new child should be positioned right of it's previous sibling in ltr mode.
This commit is contained in:
parent
9ca3f8f013
commit
7c8f761d43
@ -360,7 +360,7 @@ clutter_grid_request_update_child_attach (ClutterGridRequest *request,
|
|||||||
|
|
||||||
td = clutter_actor_get_text_direction (container);
|
td = clutter_actor_get_text_direction (container);
|
||||||
rtl = (td == CLUTTER_TEXT_DIRECTION_RTL) ? TRUE : FALSE;
|
rtl = (td == CLUTTER_TEXT_DIRECTION_RTL) ? TRUE : FALSE;
|
||||||
side = rtl ? CLUTTER_GRID_POSITION_RIGHT : CLUTTER_GRID_POSITION_LEFT;
|
side = rtl ? CLUTTER_GRID_POSITION_LEFT : CLUTTER_GRID_POSITION_RIGHT;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user