From 38f4dd353d3c324580fb7eb299ce1cdacba1c5f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 14 Feb 2011 01:24:22 +0000 Subject: [PATCH] Make Item#bounds setter work for PathItem, and add two TODO comments about Bootstrap shortcommings that cause it to break. --- src/path/PathItem.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/path/PathItem.js b/src/path/PathItem.js index e55c935d..a92a9d16 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -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];