mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Fix issue with cached internal bounds and #transformContent == true.
This commit is contained in:
parent
d65ede7df8
commit
3d868ae400
1 changed files with 3 additions and 2 deletions
|
@ -2697,8 +2697,9 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
// in _bounds and transform each.
|
||||
for (var key in bounds) {
|
||||
var rect = bounds[key];
|
||||
// See _getCachedBounds for an explanation of this:
|
||||
if (!rect._internal)
|
||||
// If these are internal bounds, only transform them if this
|
||||
// item transforming its content.
|
||||
if (this._transformContent || !rect._internal)
|
||||
matrix._transformBounds(rect, rect);
|
||||
}
|
||||
// If we have cached bounds, update _position again as its
|
||||
|
|
Loading…
Reference in a new issue