haxeui / haxeui-hxwidgets

The hxWidgets backend of the HaxeUI framework -
http://haxeui.org
MIT License
23 stars 7 forks source link

A little defect with styling #14

Closed R3D9477 closed 3 years ago

R3D9477 commented 6 years ago

Hi, I noticed a small defect: the size of component can't be changed if width and height is setted into syle field.

For example, this will be shown correctly:

<textfield
   id="display"
   width="100"
   height="100"
   style="font-size:22;text-align:right"
   text="0" />

But will not be displayed with these samples of markup (I think because it size will be 0width 0height by default):

<textfield
   id="display"
   width="100"
   style="height:100;font-size:22;text-align:right"
   text="0" />

or

<textfield
   id="display"
   height="100"
   style="width:100;font-size:22;text-align:right"
   text="0" />

or

<textfield
   id="display"
   style="width:100;height:100;font-size:22;text-align:right"
   text="0" />

(all of these samples are correctly works with haxeui-html5, haxeui-kha and haxeui-openfl) Thanks.