haxeui / haxeui-hxwidgets

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

Something wrong with element's position and sizing into VBox #15

Closed R3D9477 closed 3 years ago

R3D9477 commented 7 years ago

Hi, I have some troubles with positioning and sizing of elements into VBox.

For example:

<vbox width="100%" height="100%">
    <hscroll pos="25" width="100" height="25" />
    <hprogress pos="75" width="100" height="25" />
    <hslider pos="50" width="100" height="25" />
</vbox>

result: 1

if try use default value of height the result will not be correctly, too:

<vbox width="100%" height="100%">
    <hscroll pos="25" width="100" />
    <hprogress pos="75" width="100" />
    <hslider pos="50" width="100" />
</vbox>

result: 2

sample.zip

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

ianharrigan commented 7 years ago

image

This works for me... Have you tried the "validation" branches of haxeui-core and haxeui-hxwidgets?

R3D9477 commented 7 years ago

@ianharrigan with "validation" branches first sample is work fine:

<vbox width="100%" height="100%">
    <hscroll pos="25" width="100" height="25" />
    <hprogress pos="75" width="100" height="25" />
    <hslider pos="50" width="100" height="25" />
</vbox>

but second sample

<vbox width="100%" height="100%">
    <hscroll pos="25" width="100" />
    <hprogress pos="75" width="100" />
    <hslider pos="50" width="100" />
</vbox>

isn't work correctly, because has some troubles with hslider (another issue)