Group: fix clipping.

This commit is contained in:
Jonathan Puckey 2011-02-17 16:50:06 +01:00
parent 2a1e00d127
commit 637e85b31b

View file

@ -12,11 +12,13 @@ Group = Item.extend({
},
draw: function(ctx) {
ctx.save();
for (var i = 0, l = this.children.length; i < l; i++) {
this.children[i].draw(ctx);
if(this.clipped & i == 0)
ctx.clip();
}
ctx.restore();
},
getBounds: function() {