Closed NeckbreakerPascal closed 3 years ago
Thanks for the issue. Your issue mentions a StackBlitz where I can see the issue happening, however I cannot find the link. Did you include it in the issue description?
Thanks for the issue. Your issue mentions a StackBlitz where I can see the issue happening, however I cannot find the link. Did you include it in the issue description?
Thanks for the quick answer. I tried to create a Stackblitz but it did not work, I only found an ionic 4 version, no ionic 5 for stackblitz and the one I found ran into a scss issue.
Can you reproduce this issue in an Ionic starter app and push it as a GitHub repo?
Can you reproduce this issue in an Ionic starter app and push it as a GitHub repo?
I will try that next week. :) Good idea! I guess on monday or tuesday.
Can you reproduce this issue in an Ionic starter app and push it as a GitHub repo?
Hey there, I added you to the private repo: https://github.com/NeckbreakerPascal/ionic-app
There you can see the error on Tab Page 2, already in the browser with ionic serve. When you Refresh, the content is short time cuttet on the slide.
Thanks! I was able to reproduce this behavior, though it looks like this is a bug in Swiper, not Ionic Framework (Swiper is the library that powers ion-slides
). When you pull to refresh, something causes Swiper to set the .swiper-wrapper
class to have a height of ~198px, resulting in the content being cut off.
One thing you can do as a workaround is to add a class that forces the height to remain at 100%
while the content is refreshing:
tab2.page.html
<ion-slides [ngClass]="{'refreshing' : refreshing}"></ion-slides>
global.scss
ion-slides.refreshing .swiper-wrapper {
height: 100% !important;
}
You are welcome to file an issue with the Swiper author (https://github.com/nolimits4web/swiper) though they may ask for a code reproduction outside of Ionic Framework.
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.
Bug Report
Ionic version:
[ ] 4.x [x] 5.x
Current behavior:
First Problem:
new additional Problem:
Expected behavior:
Steps to reproduce:
Related code:
For example, the content of the first slider...
Other information:
Ionic info: