Fix View#bounds for zoom levels other than 1.

This commit is contained in:
Jürg Lehni 2011-08-22 11:12:40 +02:00
parent 7c2fabd6a1
commit a081419a8b

View file

@ -219,7 +219,7 @@ var View = this.View = PaperScopeItem.extend(/** @lends View# */{
*/
getBounds: function() {
if (!this._bounds)
this._bounds = this._matrix._transformBounds(
this._bounds = this._getInverse()._transformBounds(
new Rectangle(new Point(), this._viewSize));
return this._bounds;
},