haxeui / haxeui-kha

The Kha backend of the HaxeUI framework -
http://haxeui.org
MIT License
45 stars 16 forks source link

Css props height/width in style="" don't accept % values #28

Open mundusnine opened 5 years ago

mundusnine commented 5 years ago

Expected Behavior

If we put a percentage value in css prop height/width in the style="" the height/width should be set to the percentage value and not just null out

Current Behavior

When putting a height/width with a percentage(100%) value in the css style="" it creates a width or height of zero(or null)

Possible Solution

In the meantime users can use width="100%"

Steps to Reproduce (for bugs)

In main.xml

<vbox width="100%" style="height: 100%;" >
    <box id="I will not appear because vbox height is ill defined">
    <box/>
<vbox/>

Your Environment

haxeui-core and haxui-kha git new-component-method