Re: [FlexJS] SVG getBBox

2017-03-20 Thread Harbs
The problem is that before it’s added to the DOM, the call causes an error in Firefox. > On Mar 20, 2017, at 8:01 PM, OmPrakash Muppirala wrote: > > Width and height properties are fine for rectangular shapes. For curves > and paths, we need the getBBox () method to get the true extents. > >

Re: [FlexJS] SVG getBBox

2017-03-20 Thread OmPrakash Muppirala
Width and height properties are fine for rectangular shapes. For curves and paths, we need the getBBox () method to get the true extents. I think this call could be moved down the chain and called only when needed, i.e. for curves and non rectangular shapes. Moreover, the promise of the getBBo

[FlexJS] SVG getBBox

2017-03-19 Thread Harbs
The SVG components that subclass GraphicShape use getBBox to feed the size into the resize method. This is a problem due to a Firefox bug which prevents the use of getBBox() before an SVG element is added to the document hierarchy.[1] I’m not sure I understand why getBBox() is being called at al