[clutter/clutter-1.6] snap-constraint: Fix allocation for CLUTTER_SNAP_EDGE_RIGHT



commit d4637af7e92b04372a7261ac0165826241fc0f0e
Author: Bastian Winkler <buz netbuz org>
Date:   Tue Jul 5 17:31:41 2011 +0200

    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

 clutter/clutter-snap-constraint.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-snap-constraint.c b/clutter/clutter-snap-constraint.c
index e80b4ca..99af0b1 100644
--- a/clutter/clutter-snap-constraint.c
+++ b/clutter/clutter-snap-constraint.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]