Giter VIP home page Giter VIP logo

Comments (7)

nolimits4web avatar nolimits4web commented on May 20, 2024

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.

nolimits4web avatar nolimits4web commented on May 20, 2024
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.

omerduzyol avatar omerduzyol commented on May 20, 2024

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.

nolimits4web avatar nolimits4web commented on May 20, 2024

Ok, with latest updates everything fine, overlay appears?

from framework7.

omerduzyol avatar omerduzyol commented on May 20, 2024

Yes, everything is well. I also removed my old fork and re-forked again for future updates. :)

Thanks!

from framework7.

nolimits4web avatar nolimits4web commented on May 20, 2024

Ok, great;)

from framework7.

bigruben avatar bigruben commented on May 20, 2024

So does this help me if l am using iPhone 4s

from framework7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.