Open ionitron-bot[bot] opened 5 years ago
Is there a workaround for this issue? I'm also experiencing this exact problem with ng-repeat in Ionic 1.
For me the fix to a simlar problem was to call the function populating the list from ngAfterViewInit and not from ngOnInit
Original issue by @lincolnthree on 2017-11-22T16:26:48Z
Ionic version: (check one with "x") (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1) [ ] 2.x [ ] 3.x [x ] 4.x
I'm submitting a ... (check one with "x") [x ] bug report [ ] feature request
Please do not submit support requests or "How to" questions here. Instead, please use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior: At seemingly random times, images in the --prod application (only on iOS) will become corrupt and display incorrectly. Sometimes the images simply repeat improperly, other times they become jagged and distorted. Scrolling the page up and down rapidly seems to clear them up most of the time.
I have not been able to catch this occurring in a dev build, or in a state that would allow me to attach a debugger, but nothing in the code changes these image URLs, and "shaking" the scrollbar seems to clear it up sometimes, so doesn't seem like a code issue on my end. I'm at about my limit for trying different ways to display images to prevent this from happening.
I've tried background images, ion-img (can't use for various other buggy reasons), regular imgs, etc.
Expected behavior: I would expect that the images render correctly without corruption or incorrect repetition.
Steps to reproduce: I wish I could provide steps to reproduce. It is seemingly random when this happens. Users have only reported it on iOS. iOS version does not seem to be related. It occurs both on WKWebView and UIWebView.
Related code:
Other information: Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):