question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Material status bar overlay should be 24px

See original GitHub issue

This is a (multiple allowed):

  • bug

  • enhancement

  • Framework7 Version: 1.5.3

  • Platform and Target: Cordova – Android

What you did

I created a PhoneGap application running on Android API 21+ and then I explicitly enabled fullscreen using this code:

window.getDecorView().setSystemUiVisibility(
                        View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                                | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
                window.setStatusBarColor(Color.TRANSPARENT);

To check the statusbar size, I temporarily set it to red:

.statusbar-overlay { background-color: red; }

Expected Behavior

The status bar overlay should be 24px while using the Material theme.

Actual Behavior

The status bar is set to 20px and a lot of other elements depending on it also use a padding or top position of 20px.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
macdonstcommented, Feb 26, 2017

@lazza this cool. I just wanted to make sure I understood the bug. Link you status bar issue/PR here as well. I’m an apache Cordova core committee / Adobe Phonegap team member and I want this to work seamlessly for everyone.

0reactions
lock[bot]commented, Jun 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Height of status bar in Android [duplicate] - Stack Overflow
According to Material Guidance; height of status bar is 24 dp. If you want get status bar height in pixels you can use...
Read more >
Status bars - System experiences - Human Interface Guidelines
A status bar appears along the upper edge of the screen and displays information about the device's current state, like the time, cellular...
Read more >
Get a Material Design Status Bar & Icons on Any Android ...
Color-Matching Status Bar with Stock Android Icons—No RootFull ... Status will overlay your existing status bar with a brand new one, ...
Read more >
React Icon Component - Material UI - MUI
Standardized Material Icons exported as React components (SVG icons). ... If you aren't already using Material UI in your project, you can add...
Read more >
Status bar overlay | Framework7 v1 Documentation
iOS 7+ allows you to have make full screen apps. But there could be such problem when status bar overlap your app: Not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found