Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NipponSunrise opened this issue Apr 26, 2024 · 2 comments

Comments

@NipponSunrise
Copy link

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
Copy link
Author

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!

@ianharrigan
Copy link
Member

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... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants