mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
snap-constraint: Fix allocation for CLUTTER_SNAP_EDGE_RIGHT
Use source_with instead of source_height to calculate the the x1/x2 positions for CLUTTER_SNAP_EDGE_RIGHT https://bugzilla.gnome.org/show_bug.cgi?id=654024
This commit is contained in:
parent
f1f5d7658f
commit
c9cbe58343
@ -159,9 +159,9 @@ clutter_snap_constraint_update_allocation (ClutterConstraint *constraint,
|
||||
|
||||
case CLUTTER_SNAP_EDGE_RIGHT:
|
||||
if (self->from_edge == CLUTTER_SNAP_EDGE_RIGHT)
|
||||
allocation->x2 = source_x + source_height + self->offset;
|
||||
allocation->x2 = source_x + source_width + self->offset;
|
||||
else if (self->from_edge == CLUTTER_SNAP_EDGE_LEFT)
|
||||
allocation->x1 = source_x + source_height + self->offset;
|
||||
allocation->x1 = source_x + source_width + self->offset;
|
||||
else
|
||||
warn_horizontal_edge ("right", self->actor, self->source);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user