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.

bug: [iOS] Side menu close animation not behaving correctly

See original GitHub issue

Bug Report

Ionic version: [x] 4.x [x] 5.x

Current behavior: When the ion-content doesn’t have the fullscreen attribute set to true, the side menu closes itself instantly without any animation if the iOS device has the low power mode enabled. See the attached gif below. (only occurs on iOS)

ios

Expected behavior: The side menu should smoothly close itself, having the low power mode enabled or not.

Steps to reproduce:

  • Create a new Ionic project using ionic start
  • Choose the side-menu template
  • Open the file src/app/folder/folder.page.html
  • Remove [fullscreen]="true" on <ion-content>
  • Prepare and add the iOS platform with ionic cordova prepare ios
  • Open Xcode and run the app on a real device
  • Enable the low power mode

Related code: I have found a temporary fix to keep the animation no matter what :

  • Set the fullscreen attribute to true
  • Use some CSS to avoid the fullscreen effect
<ion-content [fullscreen]="true">
ion-content {
  --offset-top: 0px !important;
  --offset-bottom: 0px !important;
}

While this works, this is clearly not ideal.

Other information: iPhone X running iOS 13.2.2. I couldn’t test on another iOS device/version.

Works fine on iOS if the low power mode is disabled. Works fine either way on Android/Browser.

Ionic info:

Ionic:
   Ionic CLI                     : 6.7.0 (/Users/reqven/.nvm/versions/node/v12.16.1/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.1.0
   @angular-devkit/build-angular : 0.803.26
   @angular-devkit/schematics    : 8.3.26
   @angular/cli                  : 8.3.26
   @ionic/angular-toolkit        : 2.2.0

Cordova:
   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)

Utility:
   cordova-res (update available: 0.14.0) : 0.10.0
   native-run (update available: 1.0.0)   : 0.2.8

System:
   Android SDK Tools : 26.1.1 (/Users/reqven/Library/Android/sdk)
   ios-deploy        : 1.9.4
   ios-sim           : 8.0.2
   NodeJS            : v12.16.1 (/Users/reqven/.nvm/versions/node/v12.16.1/bin/node)
   npm               : 6.13.4
   OS                : macOS Catalina
   Xcode             : Xcode 11.3.1 Build version 11C504

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Reqvencommented, May 6, 2020

Yes, these are the correct steps. A coworker of mine couldn’t reproduce the issue either on iOS 13.4.1 Updating my iPhone to the latest iOS version fixed the issue.

Pretty sure this was related to my device, it’s been a while I haven’t factory reset/updated it. Thanks for investigating, I guess you can close this issue now.

0reactions
ionitron-bot[bot]commented, Jun 5, 2020

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 Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: [iOS] Side menu close animation not behaving correctly ...
Expected behavior: The side menu should smoothly close itself, having the low power mode enabled or not. Steps to reproduce: Create a new...
Read more >
Side Menu not showing correctly - ios - Stack Overflow
It just slide out a black page, which supposed to be the side menu. And here's the warning : SideMenu Warning: menuLeftNavigationController ...
Read more >
Wrong navigation bar layout for second modal controller
There is a bug in iOS 13 that cause the navigation bar of the second controller presented modally to have a wrong layout....
Read more >
Smooth as Butter: Achieving 60 FPS Animations with CSS3
We want to give you a hand in harnessing the power of CSS3 correctly. To do just that we need to understand a...
Read more >
Animation transitions - Unity - Manual
Check to make the transition happen at the specific time specified in Exit Time. Settings, Fold-out menu containing detailed transition settings as below....
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