jiveui / jive

A crossplatform UI framework for Haxe
Other
63 stars 8 forks source link

widthPercent and heightPercent for SVG get sizes from window ignoring SVG width and height #104

Closed klmsmb closed 8 years ago

klmsmb commented 8 years ago

Code to check

<Svg width="Metric.percent(30)" height="Metric.percent(30)">
                    <content>
                            <rect x="0" y="0" width="{ widthPercent(100) }" height="{ heightPercent(100) }" fill="#ff0000"/>
                    </content>
            </Svg>