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

Centering horizontally and vertically does not work within v-app #1428

Closed
smares opened this issue Aug 20, 2017 · 2 comments
Closed

Centering horizontally and vertically does not work within v-app #1428

smares opened this issue Aug 20, 2017 · 2 comments

Comments

@smares
Copy link

smares commented Aug 20, 2017

Steps to reproduce

Create a template with <v-app> -> <v-container fluid fill-height> -> <v-layout flex align-center justify-center>

Versions

Vue 2.4.2, Vuetify 0.14.11, Edge 15.

What is expected ?

Because of the fill-height. I would expect the <v-container> to take up all available height.

What is actually happening ?

The container is only as high as the content inside it. The 100% height doesn't appear to work.

It works without v-app: https://codepen.io/anon/pen/ZJxOxo

It also works if the height is not 100% but 100vh, but this is specific to the layout of the page because as soon as you have surrounding elements, you have to calc(100vh - other_heights): https://codepen.io/anon/pen/wqmWjg

Reproduction Link

https://codepen.io/anon/pen/ayYZqP

@johnleider
Copy link
Member

You were missing <main>

https://codepen.io/anon/pen/XaEpPx

@lock
Copy link

lock bot commented Apr 16, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

@lock lock bot locked as resolved and limited conversation to collaborators Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants