Hey Everyone!
I have a page with several sliders. Everything is working fine until I navigate to a different page. Post some few things on the server and then come back to the slider page.
All my sliders end up half-way, here’s a picture
This bug is not happening in ionic serve but only when I have build for my android phone.
I have tried to used a lifecycle hook and force the view to go to the first slide using slideTo(0, 0, false);
but this is no longer working. (It was working before RC5).
Here’s the code in HTML
<ion-slides #mySlider>
...
</ion-slides>
Code in TS
@ViewChild('mySlider') slider: Slides;
...
ionViewWillEnter() {
this.slider.slideTo(0, 5, false);
}
Anyone has faced this? How did you solve it?
If I turn the phone 90 degress (on landscape mode) and then come back on portrait mode, all the sliders get back into place.