Handle bounds correctly for groups with only empty children.

This commit is contained in:
Jürg Lehni 2013-04-09 19:24:41 -07:00
parent 0f19e72733
commit f79e561512

View file

@ -874,7 +874,9 @@ var Item = this.Item = Base.extend(Callback, {
y2 = Math.max(rect.y + rect.height, y2); y2 = Math.max(rect.y + rect.height, y2);
} }
} }
return Rectangle.create(x1, y1, x2 - x1, y2 - y1); return isFinite(x1)
? Rectangle.create(x1, y1, x2 - x1, y2 - y1)
: new Rectangle();
}, },
setBounds: function(rect) { setBounds: function(rect) {