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:
Jürg Lehni 2011-02-14 01:24:22 +00:00
parent bb9ae75f3d
commit 38f4dd353d

View file

@ -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];