Git Product home page Git Product logo

Comments (6)

ahmedelatab avatar ahmedelatab commented on August 17, 2024 5

Follow this approach to overcome the bug in the StatusBar plugin:

statusBar.overlaysWebView(false);
statusBar.overlaysWebView(true);

setTimeout(() => {
  statusBar.overlaysWebView(false);
  statusBar.overlaysWebView(true);
}, 80);

Reverse the logic to prevent the status bar fro overlaying the web view.

from cordova-plugin-statusbar.

mosabab avatar mosabab commented on August 17, 2024 4

This problem still not solved !

from cordova-plugin-statusbar.

SchnWalter avatar SchnWalter commented on August 17, 2024 1

@breautek, related, to your comment #172 (comment); I'm not sure if it's the same issue.

The page is rendered properly, but then immediately, the WebView height is increased by the size of the statusbar and we see the map being resized to fit the new viewport. And this doesn't happen at the application startup, we change the overlaysWebView only when we navigate into the map page, so the layout is already stable before we change the overlay.

from cordova-plugin-statusbar.

breautek avatar breautek commented on August 17, 2024

Any help to investigate this issue or PRs would be greatly appreciated.

from cordova-plugin-statusbar.

breautek avatar breautek commented on August 17, 2024

In my testing, if you apply the PR #171 and set the overlay via config.xml preference, it appears to reliability set the statusbar properly.

I still haven't determined the cause of the statusbar not working properly when using the JS api on the deviceready event. Logging out information shows that the view state is all proper, even though visually the statusbar does not update.

from cordova-plugin-statusbar.

yxk0909 avatar yxk0909 commented on August 17, 2024

The problem is still unsolved, when i set <preference name="StatusBarOverlaysWebView" value="true" />

i used your code on https://github.com/apache/cordova-plugin-statusbar/pull/171/files
That solved my problem. Thank you

from cordova-plugin-statusbar.

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.