-
Notifications
You must be signed in to change notification settings - Fork 143
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
WrapContent does not ignore hidden views #189
Labels
Comments
Hi @marclefrancois! I need to think about it, but:
Possible solutions I see:
|
Thanks for the answer @lucdion ! Off the top of my head i kinda prefer option 1. Or maybe it could be a secondParameter Or maybe it could be a another method: |
It will be very useful to ignore hidden views. |
Very old topic. Closing it, sorry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just came across an unexpected behaviour.
Lets says i have a view with 3 subviews that i layout side by side. if i hide one of the views, wrapContent on the parent view does not skip the hidden View so the parent ends up being too wide.
I was wondering if adding the following at the beginning of the wrapContent method would be desirable:
It requires adding
isVisible
to theLayoutable
protocol which is fairly easyThanks !
The text was updated successfully, but these errors were encountered: