-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to fill remaining height with View? #185
Comments
Hey there, to clarify, you're trying to make the view assume the entirety of the page? You need to use a property called View.Item grow Try this with your original code and see if it works.
|
That's a good point! Right now we're only turning on flexbox behaviour if one of the flex properties are used on View. I'll see how we can improve that, but meanwhile what you can do is apply |
I've added auto detection for this use case as well. If you have a |
Hi, I am struggling to create a simple header/content layout using the View utility.
I would like to have a View that fills the full screen height, then a header that is a fixed height, then the content fill the remaining space.
I thought something like this would work:
as the top View is 100vh then the inner content View will grow to fill the remaining height. However, the content View does not grow:
I have re-written it using divs to create the effect I was expecting, with the same flex properties I thought would be applied by the View like this:
and it works as expected:
So I am a little unclear on what I am doing wrong when trying to use the View?
Thanks!!
The text was updated successfully, but these errors were encountered: