-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render unnormal when slideContainer addChild async #80
Comments
I have the same problem and stuck with that for many hours. I'm adding slides with an onTap method and it breaks exactly that way you described here (mixes up content over and over and sliding is broken). Reproduce:
Seems to be the same than in #63 |
Thanks for the feed back @andreasotto and @imwalson. I'll look into this more when i have a chance. Off the top of my head I don't have a solution, sorry :( |
As the appSettings is sync,so I first converts the data to string and then storage to appSettings in advance: Just the temporarily solution,the disadvantage is that i can't get result timely, the data delayed. |
Maybe we can use UIScrollView to create a slides on ios,like some native slides library does.I have written a "nativescript-swiper" plugin for ios based on UIScrollView just know :https://github.com/imwalson/nativescript-swiper.Welcome contributors and issues. @andreasotto @TheOriginalJosh |
This issue is very similar to #63 I posted one work around there if you need to create dynamic slides at runtime. In short, you can just create the entire |
I'm trying to add child to the slide container async way dynamically (for example,in the callback of a http request).however,the Interface become unnormal and slide container can't swipe.
To verificate this,just change the file 'dynamic-page.ts' of the demo in line 24,like
setTimeout(function() { slideContainer.addChild(getSlide("Page " + i, "slide-" + i)); }, 100);
and run.
May be use Template and bindingContext (like the Repeater and Listview) is a better way?
Thanks.
The text was updated successfully, but these errors were encountered: