Closed R3D9477 closed 3 years ago
The width is quite hard to auto size to be honest, that said, the height should be fine. Let me check the default theme.
what happens with:
<hslider pos="50" width="100" style="height:auto;" />
?
Ah - just noticed this is hxwidgets
This works for me... Have you tried the "validation" branches of haxeui-core and haxeui-hxwidgets?
@ianharrigan Thanks for your answer!
Another example:
<vbox width="100%" height="100%">
<hslider pos="50" width="100" height="25" />
<vslider pos="50" width="25" height="100" />
</vbox>
<vbox width="100%" height="100%">
<hslider pos="50" width="100" />
<vslider pos="50" height="100" />
</vbox>
"validation" branches of haxeui-core and haxeui-hxwidgets the same?
@ianharrigan yes, with "validation" branches I have same result.
But, this sample is works fine (answering the previous question):
<vbox width="100%" height="100%">
<hslider pos="50" width="100" style="height:auto;" />
<vslider pos="50" height="100" style="width:auto;" />
</vbox>
Hi. Is it possible to evaluate default size of vslider and hslider?
For example this markup will not wirks correctly:![1](https://user-images.githubusercontent.com/15020827/30202785-568ddb80-9488-11e7-84c5-f05241197870.png)
<hslider pos="50" width="100"/>
needed to set value height manually:![2](https://user-images.githubusercontent.com/15020827/30202805-5e2101b0-9488-11e7-9dd6-acef968ca8bc.png)
<hslider pos="50" width="100" height="25" />
Same defect actually for vslider and property width.
(all of these samples are correctly works with haxeui-html5, haxeui-kha and haxeui-openfl) Thanks.