Comments (7)
Right, i came to such solution instead of change navbar height for few reasons:
- first of all, you probably should just color this statusbar-overlay with the color of navbar
- what to do on pages without navbar? In this case status bar text will overlap page content. But with this solution it always will have bg color
- and the most important part is that you can change its color dynamically. Try for example to open http://www.idangero.us/framework7/kitchen-sink/ in Chrome, in developer tools in Emulation section enable Emulate screen and set it 320x480 and reload page. You will see that this black overlay will appear. And then open left side panel and you will note that it change color to gray from black:) This feature used by many native apps. The closest example is a iPhone's Facebook app - status bar overlay change its color when you open panels
from framework7.
Btw, device.webview = !!navigator.standalone; returns false in UIWebView. But I able to detect UIWebView by checking User Agent. What do you think?
Didn't note that, then you are right, it should be changed to User Agent check. Share your solution please:)
from framework7.
Oh, I can't see <div class="statusbar-overlay"></div>
in the native webview. But according to your explanation about pages without navbar your approach is right.
But it still can't detect the native webview :) I'm going to send a PR for this.
from framework7.
Ok, with latest updates everything fine, overlay appears?
from framework7.
Yes, everything is well. I also removed my old fork and re-forked again for future updates. :)
Thanks!
from framework7.
Ok, great;)
from framework7.
So does this help me if l am using iPhone 4s
from framework7.
Related Issues (20)
- sheet.setSwipeStep is not a function
- Problem with navbar hideOnPageScroll and subnavbar/list-groups
- Problem with navbar hideOnPageScroll and master-detail-view
- Wrong React interfaces are used for the Svelte import components. HOT 6
- Svelte. Framework7 popup visibility binding is broken. HOT 1
- Svelte 4 warning "no exports condition" when framework 7 library is used. HOT 1
- Svelte. Popup/f7Popup backdrop is not disposed onDestroy HOT 1
- Svelte. Framework 7 build warning
- Problem closing popups on ios HOT 13
- Swipeable tab content is not loaded HOT 1
- MAIN VIEW CRASH AND RELOAD AGAIN BUG HOT 1
- Route async tablet/movil HOT 1
- Picker change its value at random on Safari
- Svelte. Popup two way binding to opened state does not work. (with demo)
- Svelte. Popup/f7Popup backdrop is not disposed onDestroy (With demo)
- Svelte. Popover cannot be closed when link is external and routing is prevented. (With DEMO)
- Svelte. Popover binding on opened property is ignored. (with demo)
- Svelte. Popup "animate" propery is ignored. (with demo)
- Core modal. Sometimes parameters are disposed due to the rase condition.
- V8 pages dom elements not avaiable until pageAfterIn event
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework7.