Replace accidental beans access in Item#setBounds with corresponding getters.

This commit is contained in:
Jonathan Puckey 2011-06-19 03:28:27 +02:00
parent 7285d6fc85
commit d13e9bbaa1

View file

@ -1046,7 +1046,7 @@ var Item = this.Item = Base.extend({
rect = Rectangle.read(arguments);
var bounds = this.getBounds(),
matrix = new Matrix(),
center = rect.center;
center = rect.getCenter();
// Read this from bottom to top:
// Translate to new center:
matrix.translate(center);
@ -1057,7 +1057,7 @@ var Item = this.Item = Base.extend({
bounds.height != 0 ? rect.height / bounds.height : 1);
}
// Translate to center:
center = bounds.center;
center = bounds.getCenter();
matrix.translate(-center.x, -center.y);
// Now execute the transformation:
this.transform(matrix);