Skip to content
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

items array changed - IOS rendering issue #58

Closed
bzaruk opened this issue Apr 11, 2018 · 2 comments
Closed

items array changed - IOS rendering issue #58

bzaruk opened this issue Apr 11, 2018 · 2 comments

Comments

@bzaruk
Copy link

bzaruk commented Apr 11, 2018

Happen only on IOS

There is a bug on IOS rendering.
I want to create a Pager on changed array and it seems that this is an issue with rendering...it takes you the the second page and also black the page, so I should swipe left or right to get it live agian
I think example would be the best to describe it:

*** NS-Angular

TS:

import { Component } from "@angular/core";

@Component({
    moduleId: module.id,
    selector: "times-selection",
    templateUrl: "./timesSelection.component.html"
})
export class TimesSelectionComponent {
    public selectedDates: Array<Date> = [];

    constructor() {
        setTimeout(() => {
            this.selectedDates = [new Date(), new Date()];
        }, 5000)
    }
}

HTML:

<Pager [items]="selectedDates" width="100%" height="100%" [pagesCount]="selectedDates.length">
    <ng-template let-item="item">
        <GridLayout rows="*" columns="*">
            <Label width="100%" row="0" col="0" textAlignment="center" [text]="item"></Label>
        </GridLayout>
    </ng-template>
</Pager>

but you can see that if you define the selectedDates in the beginning just like this public selectedDates: Array<Date> = [new Date(), new Date()]; it will work.

any idea why?

@triniwiz
Copy link
Owner

Can you try adding the disableAnimation="true" to the page and report the new findings ?

@bzaruk
Copy link
Author

bzaruk commented Apr 11, 2018

Works perfectly! Thank you!

@bzaruk bzaruk closed this as completed Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants