haxeui-core icon indicating copy to clipboard operation
haxeui-core copied to clipboard

Combination of `min-width` and `max-width` does not work for button as expected

Open NipponSunrise opened this issue 1 year ago • 2 comments

Combination of min-width and max-width does not work for button. Button's width is sticked exclusively with min-width value and does not stretch.

http://haxeui.org/builder/?e95796e9

Expected behavior

Button has minimum width specified in style which is 8rem (see link above) and follows the title's length until 20rem.

Your Environment

  • Version used: haxui.org playground and haxeui-openfl 1.7 with html5 target

NipponSunrise avatar Apr 26 '24 09:04 NipponSunrise

Hello Ian,

I wanted to kindly ask if there are any updates on this issue. I completely understand that you may have other priorities and I don’t want to rush things. If you’re unable to address this in the near future, I would really appreciate any pointers on where to start looking for a solution, so I could try to make the changes and propose a patch myself.

Thank you in advance for your response and for all your work on the project!

NipponSunrise avatar Sep 24 '24 13:09 NipponSunrise

Hi,

So the problem with the min / max size stuff is they are constrained at completely the wrong places, which means, as you have seen things behave odd. Its not the only place either.

I've had a couple of attempts at it, and each one breaks other things is various ways. Ill see i can pencil in some time to have another stab at it... :)

ianharrigan avatar Sep 24 '24 15:09 ianharrigan