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

Height 100% #38

Closed
AlbatiQue opened this issue Mar 3, 2016 · 2 comments
Closed

Height 100% #38

AlbatiQue opened this issue Mar 3, 2016 · 2 comments

Comments

@AlbatiQue
Copy link

Hey I'm trying to make the split items full height of the browser window minus the height of the navbar.
But when setting the height to for example 100% . The split view functionality does not work anymore.
How can I achieve this?

Thanks for the help!

@ghost
Copy link

ghost commented Mar 14, 2016

I'd prefer a CSS answer but I achieved this with JavaScript. Using jQuery you can hook into the window resize event, and then use the height of the window to set the height of the parent pane container.

@ozguruysal
Copy link

You can try CSS3 vh unit. 1vh = 1% of viewport height. So if you want 100% viewport height minus the height of the navbar (let's assume your navbar height is 70px), you can set the height like this:

height: calc(100vh - 70px);

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

3 participants