Skip to content

[Bug]: Header is behind the statusbar on Android 13 #8103

@otabekoff

Description

@otabekoff

Capacitor Version

I am using Capacitor 7 and Ionic 8. I've Node version 22.

Other API Details

npm --version
11.5.2

node --version
v22.17.1

pod --version
'pod' is not recognized as an internal or external command,
operable program or batch file.

I am on Windows 11.

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Header is leaving behind the transparent statusbar on Android 13 LG Wing 5G phone.

Image

As you can see I've just created a new project and edited "Tab 1 Page" to "Tab 1 only, to see if live reload is working or not.

This is that default tabs template.

How I can fix this? I can't find any working solution, no any videos, tutorials articles.

According to the docs I did these too, but didn't work:

html {
  --ion-safe-area-top: env(safe-area-inset-top);
  --ion-safe-area-bottom: env(safe-area-inset-bottom);
  --ion-safe-area-left: env(safe-area-inset-left);
  --ion-safe-area-right: env(safe-area-inset-right);
}
ion-content {
  padding-top: var(--ion-safe-area-top);
  padding-bottom: var(--ion-safe-area-bottom);
  padding-left: var(--ion-safe-area-left);
  padding-right: var(--ion-safe-area-right);
}

ion-header {
  padding-top: var(--ion-safe-area-top);
  box-sizing: border-box;
}

ion-header, .ion-header {
  padding-top: var(--ion-safe-area-top, env(safe-area-inset-top));
  box-sizing: border-box;
}

ion-toolbar {
  padding-top: var(--ion-safe-area-top);
}

So, is this a bug or undocumented and fix available stuff?

Expected Behavior

It was expected to see Safe Area working gracefully.

Project Reproduction

https://github.com/user-attachments/assets/75549d9b-3a77-4751-bfdc-e197d011100f

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions