# http://framework7.io/vue/statusbar.html
<div id="app">
<!-- Should be placed as the first child in the app root -->
<f7-statusbar></f7-statusbar>
...
</div>
html.with-statusbar-overlay {
.login-screen, .popup.tablet-fullscreen {
height: ~"-webkit-calc(100% - 20px)";
height: ~"calc(100% - 20px)";
top: 20px;
}
}
Again, the login screen is inside the app div, since the app begin at 20px, and it's position is relative, that extra 20px to the login-screen will cause a 40px top offset.
diff --git a/kitchen-sink/app.js b/kitchen-sink/app.js
index 963fce7..3cbcc2a 100644
--- a/kitchen-sink/app.js
+++ b/kitchen-sink/app.js
@@ -19,6 +19,7 @@ var app = new Vue({
root: '#app', //Should be same as app el
animateNavBackIcon: true,
routes: Routes,
+ statusbarOverlay: true
},
// Custom App Data
data: function () {
diff --git a/kitchen-sink/index.html b/kitchen-sink/index.html
index 8f8ee5f..077bdf5 100644
--- a/kitchen-sink/index.html
+++ b/kitchen-sink/index.html
@@ -9,9 +9,8 @@
<link rel="stylesheet" href="framework7/framework7.ios.colors.min.css">
</head>
<body>
-
+ <div class="statusbar-overlay"></div>
<div id="app">
- <f7-statusbar></f7-statusbar>
<f7-panel left reveal layout="dark" theme="pink">
<f7-view navbar-fixed>
<f7-pages>