Open millan2993 opened 4 years ago
I cann't to make scroll to bottom. I cann't to know the last item or last index scrollable.
Android
try { setTimeout(async () => { const count = await this.messageService.getCountMessages() - 1; if (count > 1) { // this.listViewComponent.listView.scrollWithAmount(99999999, false); this.listViewComponent.listView.scrollToIndex(count, false, ListViewItemSnapMode.Auto); } }, 200); } catch (e) { console.log(e); }
"dependencies": { "@angular/animations": "~8.2.0", "@angular/common": "~8.2.0", "@angular/compiler": "~8.2.0", "@angular/core": "~8.2.0", "@angular/forms": "~8.2.0", "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", "nativescript-angular": "^8.20.3", "nativescript-background-http": "^4.2.1", "nativescript-image": "^2.2.5", "nativescript-imagepicker": "^7.1.0", "nativescript-plugin-firebase": "^10.3.3", "nativescript-socketio": "^3.3.1", "nativescript-sqlite": "^2.3.3", "nativescript-theme-core": "~1.0.6", "nativescript-ui-listview": "^8.0.1", "reflect-metadata": "~0.1.12", "rxjs": "^6.4.0", "tns-core-modules": "^6.3.2", "zone.js": "^0.9.1" }, "devDependencies": { "@angular/cli": "^8.3.21", "@angular/compiler-cli": "8.2.0", "@nativescript/schematics": "^0.7.3", "@ngtools/webpack": "8.2.0", "nativescript-dev-webpack": "^1.4.0", "typescript": "~3.5.3" },
Tell us about the problem
I cann't to make scroll to bottom. I cann't to know the last item or last index scrollable.
Which platform(s) does your issue occur on?
Android