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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input does not seem to follow "stretch" rule #77
Comments
(Sorry for taking so long to answer!) Ah, yeah, so this is kinda interesting.
Line 56 in b53fbd1
which means the layout algorithm will use that instead of taking into account stretchedness, etc. You can fix that by giving it an undefined width: Input(...).width(Node.Undefined) Then it'll stretch as you'd expect. But also, be sure to update Few. I just fixed a bug (#80) that would cause the above fix to crash |
@joshaber I was about to say thanks for answering so quickly! I know how hard it is to stay on top of things 馃槆 But I will give that a shot! And is there any reason why |
Mostly because at the time it seemed like a good idea to have a reasonable default frame. Probably worth revisiting now. |
That is valid reasoning 馃憣 I just want to prevent others from getting hung up on the same thing like I did. Few is super easy to use and I don't want this to deter others from using it if they run into it 馃槉 I could work on a PR for it if you wouldn't mind. |
That'd be great! I wonder if we should still have a default but leave the width undefined? |
The
Input
element does not seem to follow the.childAlignment(.Stretch)
property. I have attached a screenshot (I'm bad at designing but these colors are used for clarity of the issue 馃槈) and the example view code. I believe my code is right as the "Welcome!"Label
and the bottom border views are stretched. BUT please let me know if it is something with just my code 馃槆Screenshot (duh)
Code (even more duh)
The text was updated successfully, but these errors were encountered: