mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
box-layout: Fix RTL layout swapping with non-zero container offsets
https://bugzilla.gnome.org/show_bug.cgi?id=706450
This commit is contained in:
parent
fe2aa9237a
commit
05f56affe1
@ -1217,10 +1217,8 @@ clutter_box_layout_allocate (ClutterLayoutManager *layout,
|
|||||||
{
|
{
|
||||||
gfloat width = child_allocation.x2 - child_allocation.x1;
|
gfloat width = child_allocation.x2 - child_allocation.x1;
|
||||||
|
|
||||||
child_allocation.x1 = box->x2 - box->x1
|
child_allocation.x2 = box->x1 + (box->x2 - child_allocation.x1);
|
||||||
- child_allocation.x1
|
child_allocation.x1 = child_allocation.x2 - width;
|
||||||
- (child_allocation.x2 - child_allocation.x1);
|
|
||||||
child_allocation.x2 = child_allocation.x1 + width;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user