mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Make Item#bounds setter work for PathItem, and add two TODO comments about Bootstrap shortcommings that cause it to break.
This commit is contained in:
parent
bb9ae75f3d
commit
38f4dd353d
1 changed files with 7 additions and 0 deletions
|
@ -145,6 +145,13 @@ PathItem = Item.extend(new function() {
|
|||
return new Rectangle(min.x, min.y, max.x - min.x , max.y - min.y);
|
||||
},
|
||||
|
||||
setBounds: function() {
|
||||
// Bootstrap needs setter redifiniton for now.
|
||||
// TODO: Fix there instead of here
|
||||
// TODO: this.base does not seem to work in beans either!
|
||||
return Item.prototype.setBounds.apply(this, arguments);
|
||||
},
|
||||
|
||||
transformContent: function(matrix, flags) {
|
||||
for (var i = 0, l = this._segments.length; i < l; i++) {
|
||||
var segment = this._segments[i];
|
||||
|
|
Loading…
Reference in a new issue