mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix issue in item bounds test.
Translating a Group does not change the bounds of its children.
This commit is contained in:
parent
110cbbb73d
commit
347d02bfa1
1 changed files with 1 additions and 1 deletions
|
@ -57,5 +57,5 @@ test('path.bounds when contained in a transformed group', function() {
|
|||
var group = new Group([path]);
|
||||
compareRectangles(path.bounds, { x: 10, y: 10, width: 50, height: 50 }, 'path.bounds before group translation');
|
||||
group.translate(100, 100);
|
||||
compareRectangles(path.bounds, { x: 110, y: 110, width: 50, height: 50 }, 'path.bounds after group translation');
|
||||
compareRectangles(path.bounds, { x: 10, y: 10, width: 50, height: 50 }, 'path.bounds after group translation');
|
||||
});
|
Loading…
Reference in a new issue