[4.0.0-rc.2] ion-slides do not resize after screen orientation changes in iOS
See original GitHub issueBug Report
Ionic version: [x] 4.x
Current behavior: [4.0.0-rc.2] ion-slides do not resize after screen orientation changes in iOS
Expected behavior: ion-slides should resize when orientation changes in iOS
Steps to reproduce:
- Create a new ionic 4 app and add 3 or 4 slides. Or take ionic-conference-app and upgrade to 4.0.0-rc.2
- Build project for iOS
- Install on device or run in simulator and change orientation
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.7.1 (C:\Users\gigoc\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-rc.1
@angular-devkit/build-angular : 0.12.1
@angular-devkit/schematics : 7.1.4
@angular/cli : 7.1.4
@ionic/angular-toolkit : 1.2.2
Cordova:
cordova (Cordova CLI) : not installed
Cordova Platforms : not available
Cordova Plugins : not available
System:
NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe)
npm : 6.5.0
OS : Windows 10
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:19 (6 by maintainers)
Top Results From Across the Web
[4.0.0-rc.2] ion-slides do not resize after screen orientation ...
Bug Report. Ionic version: [x] 4.x. Current behavior: [4.0.0-rc.2] ion-slides do not resize after screen orientation changes in iOS.
Read more >[4.0.0-rc.2] ion-slides do not resize after screen orientation changes ...
Bug Report. Ionic version: [x] 4.x. Current behavior: [4.0.0-rc.2] ion-slides do not resize after screen orientation changes in iOS. Expected behavior:
Read more >Why doesn't my view auto resize af… | Apple Developer Forums
I have an app using the splitscreen controller. The detail view part of it does not resize when the iPad orientation changes. All...
Read more >ion-slides bad placement after screen orientation change
In the app component I control the screen orientation behavior of the app. Can be a bit tricky. The isOverlay property is for...
Read more >Screen Orientation - Ionic Framework
Cordova Screen Orientation plugin sets/locks the screen in a common way. Read more on how to change screen orientation on Android, iOS, or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My recipe:
Template:
Class:
I’m using
setTimeout()
because I’m using<ion-split-pane>
and there can be one more resize of the<ion-content>
after the browser window resize. And listen toionSplitPaneVisible
makes everything much more complicated. But if you are not using additional elements affecting component size, you can easily drop thesetTimeout
.But still — it’ll be better if the component listens to it’s size changes internally.
HTH
Having same issue, this bug is very old, no fix so far?