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

Splashscreen content not fitting or centered after screen rotation #1342

Closed
3 tasks done
furdakov opened this issue Mar 24, 2023 · 2 comments · Fixed by #1315
Closed
3 tasks done

Splashscreen content not fitting or centered after screen rotation #1342

furdakov opened this issue Mar 24, 2023 · 2 comments · Fixed by #1315
Milestone

Comments

@furdakov
Copy link

furdakov commented Mar 24, 2023

Bug Report

Problem

When the screen is rotated, the splashscreen does not fit the screen anymore and the content is not centered. The view retains the size it had when the app started. This can be seen:

at app startup, while the splashscreen is still visible (and rotating the screen)
at runtime, when showing the splashscreen with navigator.splashscreen.show() (and the screen has been rotated)

What is expected to happen?

The splashscreen should always fit the screen and has its content centered.

What does actually happen?

The splashscreen does not fit the screen. The webview content is then visible in the area of the screen not covered by the splashscreen view.

Information

config.xml:

...
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
...
        <splash src="res/screen/ios/SplashScreen@2x~universal~anyany.png" />
        <splash src="res/screen/ios/SplashScreen@2x~universal~comany.png" />
        <splash src="res/screen/ios/SplashScreen@2x~universal~comcom.png" />
        <splash src="res/screen/ios/SplashScreen@3x~universal~anyany.png" />
        <splash src="res/screen/ios/SplashScreen@3x~universal~anycom.png" />
        <splash src="res/screen/ios/SplashScreen@3x~universal~comany.png" />
...

Environment, Platform, Device

ios, iPad

Version information

cordova-ios: 6.2.0
Xcode: 13.3.1
iOS: 15.4.1

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@erisu erisu transferred this issue from apache/cordova-plugin-splashscreen Jun 7, 2023
@erisu
Copy link
Member

erisu commented Jun 7, 2023

The issue has been transferred to the "cordova-ios" repository for further discussion and resolution.

Please note that the "cordova-plugin-splashscreen" repository no longer includes the iOS SplashScreen logic. This change was implemented some time ago, and the SplashScreen functionality has been integrated into the core of Cordova-iOS.

@dpogue dpogue added this to the 7.0.0 milestone Jun 7, 2023
@dpogue dpogue linked a pull request Jun 7, 2023 that will close this issue
2 tasks
@dpogue
Copy link
Member

dpogue commented Jun 7, 2023

I believe this was fixed in #1315, which will be part of the upcoming cordova-ios 7.0.0 release.

@dpogue dpogue closed this as completed Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants