I have a div that has a class of wrapper
. Inside it has a parent div with a class of content-wrapper
. The wrapper
div has an ng-show
that returns true/false
.
<div class="wrapper" ng-show="firebaseUser">
<% include ../partials/nav.ejs %>
<div class="content-wrapper">
<ng-view></ng-view>
</div>
<% include ../partials/footer.ejs %>
</div>
The content-wrapper
has just a little bit of css that makes it fit the entire screen. Just in case it helps I've included the parent styles as well.
.wrapper {
min-height: 100%;
position: relative;
overflow: hidden;
}
.content-wrapper, .right-side {
min-height: 100%;
background-color: #ecf0f5;
z-index: 800;
}
Now, when I use the ng-show
the screen scrolls farther than the height of the window.
If I inspect (and then refresh the page) it (.content-wrapper)
looks like on page load it's given a style of min-height: 532px;
.
If I inspect the page with no page refresh. Meaning it readjusts to the new window height it's given a style of min-height: 422px;
.
If I don't use the ng-show
the screen always fits the window and I have no problems.
What is ng-show
adjusting and how do I fix this issue?
P.S. I've tried using ng-if
instead and the result of that is the entire screen is very short and small. So, worse than ng-show
.