You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Harbs <ha...@gmail.com> on 2017/02/28 11:18:46 UTC

[FlexJS] GraphicShape.resize()

GraphicShape.resize() takes a SVGRect argument. This needs to be calculated using getBBox(). Firefox has a long-standing bug where this method causes an error if the SVG is not yet drawn.[1]

I’m not sure I understand the need for the call to getBBox(). Why is the width and height not enough? And why is the width and height always being set for SVG? If we want the size to be the bounding box, shouldn't no size be set at all?

Harbs

[1https://bugzilla.mozilla.org/show_bug.cgi?id=612118 <https://bugzilla.mozilla.org/show_bug.cgi?id=612118>]