Skip to content
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 3 app don't fill the entire screen #4708

Closed
alfredosalzillo opened this issue Jun 9, 2021 · 14 comments
Closed

bug: Capacitor 3 app don't fill the entire screen #4708

alfredosalzillo opened this issue Jun 9, 2021 · 14 comments
Labels
needs reproduction needs reproducible example to illustrate the issue platform: android

Comments

@alfredosalzillo
Copy link

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 3.0.0
  @capacitor/core: 3.0.0
  @capacitor/android: 3.0.0
  @capacitor/electron: 3.0.0
  @capacitor/ios: 3.0.0

Installed Dependencies:

  @capacitor/ios 3.0.0
  @capacitor/android 3.0.0
  @capacitor/core 3.0.0
  @capacitor/cli 3.0.0
  @capacitor/electron not installed

[success] Android looking great! 👌
  Found 10 Capacitor plugins for ios:
    @capacitor-community/facebook-login (3.0.0)
    @capacitor/app (1.0.0)
    @capacitor/clipboard (1.0.0)
    @capacitor/device (1.0.0)
    @capacitor/share (1.0.0)
    @codetrix-studio/capacitor-google-auth (3.0.1)
    capacitor-apple-login (0.0.7)
    capacitor-google-analytics (1.0.1)
    cordova-plugin-smartlook (1.7.4)
    onesignal-cordova-plugin (2.11.4)
[success] iOS looking great! 👌

Platform(s)

Android

Current Behavior

After updating to capacitor 3.0 the screen height is smaller (83% of the screen).

Expected Behavior

The app height should be full screen.

Other Technical Details

npm --version output: 7.0.15

node --version output: v15.4.0

pod --version output (iOS issues only):

Additional Context

screenshot_20210609-145018

@alfredosalzillo alfredosalzillo changed the title bug: Capacitor 3 Webview height cut bug: Capacitor 3 app don't fill the entire screen Jun 9, 2021
@jcesarmobile jcesarmobile added the needs reproduction needs reproducible example to illustrate the issue label Jun 9, 2021
@Ionitron
Copy link
Collaborator

Ionitron commented Jun 9, 2021

This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.

Please see the Contributing Guide for how to create a Code Reproduction.

Thanks!
Ionitron 💙

@Ionitron Ionitron added the needs reply needs reply from the user label Jun 9, 2021
@SheppardX
Copy link

i have a same issue ... i dont know what todo ... in before we had capacitor 2.4.7 with NO problems, Code doesnt changed of Angular APP then we upgraded to 3.0.1 this issue happens

the red box is the splashscreen behind the top left webView where the wizard is visual ...
Bildschirmfoto 2021-06-11 um 12 23 04

@Ionitron Ionitron removed the needs reply needs reply from the user label Jun 11, 2021
@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Jun 11, 2021
@alfredosalzillo
Copy link
Author

Screenshot 2021-06-11 at 14 54 53

I have found that the FrameLayout have paddingBottom setted somewhere

@Ionitron Ionitron removed the needs reply needs reply from the user label Jun 11, 2021
@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Jun 11, 2021
@SheppardX
Copy link

SheppardX commented Jun 11, 2021 via email

@Ionitron Ionitron removed the needs reply needs reply from the user label Jun 11, 2021
@SheppardX
Copy link

SheppardX commented Jun 11, 2021

Bildschirmfoto 2021-06-11 um 15 40 00

and all my padding are set to 0

@alfredosalzillo
Copy link
Author

I found out that there is no problem if you run using capacitor run android

@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Jun 14, 2021
@alfredosalzillo
Copy link
Author

The problem only appear when generating an app bundle

@Ionitron Ionitron removed the needs reply needs reply from the user label Jun 14, 2021
@SheppardX
Copy link

no for me it appears if i try run it on my real device via android studio

@alfredosalzillo
Copy link
Author

@SheppardX when you run on the device he create and run an app bundle (by default) using android studio

@SheppardX
Copy link

okay but what could be the problem ? i created android via npx cap add android initially and it looks like that

@alfredosalzillo
Copy link
Author

The problem happens always when the screen is zoommed

@alfredosalzillo
Copy link
Author

Changing android:theme="@style/AppTheme.NoActionBarLaunch" to android:theme="@style/AppTheme" in the android manifest fixed for me.

@jcesarmobile
Copy link
Member

Closing since nobody provided a sample app where it could be reproduced.

If it's theme related it could be fixed by #4841

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 11, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs reproduction needs reproducible example to illustrate the issue platform: android
Projects
None yet
Development

No branches or pull requests

4 participants