mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
bin-layout: Fix offsets
Just as BoxLayout, BinLayout uses an odd interpretation of the box passed into allocate(): to define a child area of (w x h) starting at (x, y), callers need to pass a box of (x, 2 * x + w, y, 2 * y + h). This behavior is just confusing, change it to use the full box for child allocations. https://bugzilla.gnome.org/show_bug.cgi?id=703809
This commit is contained in:
parent
5dd2dcf14f
commit
40a1903db6
@ -489,8 +489,8 @@ clutter_bin_layout_allocate (ClutterLayoutManager *manager,
|
||||
else
|
||||
child_alloc.y1 = allocation_y;
|
||||
|
||||
child_alloc.x2 = available_w;
|
||||
child_alloc.y2 = available_h;
|
||||
child_alloc.x2 = allocation_x + available_w;
|
||||
child_alloc.y2 = allocation_y + available_h;
|
||||
|
||||
if (clutter_actor_needs_expand (child, CLUTTER_ORIENTATION_HORIZONTAL))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user