Hi all ! I Could anyone suggest please … on iOs platform i have some kind of bug with content display … when page is fully downloading i see only partly content … but when I click on item on this page, go to the next page and return … I could see fully content. On adroid platform I do not have such bugs … I don’t understand what happened … Ionic does not have time to display the entire contents of the object …
ionViewDidEnter() {
this.CreateExistingTree();
}
public CreateExistingTree():Promise<any> {
return new Promise((resolve, reject) => {
this.loading = this.loader.create({
content: 'Loading information...'
});
this.loading.present();
this.contentProvider.get_items(null, this.model_id).then(data => {
this.modelsService.getModalAddDate(this.model_id).then(result => {
if (data.length > 0) {
if (result.res.rows.length > 0) {
let datas = [];
for (let i = 0; i < data.length; i++) {
this.appProvider.tapEventPageForResourses(data[i]).then(sn_result => {
let obj = {date: result.res.rows.item(0).date, highlight: false,sn:sn_result};
datas.push(Object.assign(data[i], obj));
});
}
this.content = datas;
} else {
data.highlight = false;
this.content = data;
}
this.content_temp = this.content;
this.checkingZip().then(() => {
this.loading.dismiss();
resolve(true);
})
} else {
this.contentLength = data.length;
this.checkingZip().then(() => {
this.loading.dismiss();
resolve(true);
})
}
}).catch(err => {
console.warn(err);
this.logProvider.writeLog("ERROR in getting getModalAddDate from local db while CreateExistingTree", err);
this.loading.dismiss();
});
}).catch(err => {
this.checkingZip().then(() => {
this.loading.dismiss();
resolve(true);
});
});
});
}