-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug:Capacitor 7 Android IonHeader Positioned at Top Without Padding or Margin, Overlapping Status Bar #7846
Comments
I'm having the same problem, but with react without ionic |
This is due to Android 15 using edge-to-edge display by default--you can opt out of this using the https://developer.android.com/develop/ui/views/layout/edge-to-edge https://developer.android.com/reference/android/R.attr#windowOptOutEdgeToEdgeEnforcement |
I am having the same issue , some times footer is also overlapping |
The same issue after updating 6.0.X -> 7.0.0. @stephent92 looks like a workaround, but I'm getting So, I'll just roll down and wait for a fix. |
UPD: In my case, the issue appears only if
pnpm version is 9.15.5 |
Capacitor Version
Latest Dependencies:
@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1
Installed Dependencies:
@capacitor/cli: 7.0.1
@capacitor/ios: 7.0.1
@capacitor/android: 7.0.1
@capacitor/core: 7.0.1
Other API Details
Platforms Affected
Current Behavior
I am using IonHeader in my ReactJS project with Capacitor 7, and I run the Android application. However, I am facing an issue with the header—it is not displaying properly. The header is positioned at the very top of the screen, with no space above it. It seems like the content is overlapping, or there’s no padding/margin at the top. This issue works fine when using Capacitor 6, but it seems to have started occurring after upgrading to Capacitor 7.
Expected Behavior
The IonHeader should display correctly with proper spacing at the top of the screen, without overlapping or being pushed up against the edge. There should be enough space above the header, following the safe area guidelines, especially when using Capacitor 7.
Project Reproduction
https://github.com/hetdhameliya/Doki-App
Additional Information
No response
The text was updated successfully, but these errors were encountered: