Open lostation opened 4 years ago
UPDATE: Visibly...it's not related to the Tabs itself... I tried without and even without RadSidedrawer... Now I think it's maybe more related to lazy load from children routes.
The routing stack : root level > children route module as AppContainer with a Sidedrawer > children home module > then import module component with Tabs > in first tab component with the pager...
If I use Pager directly from root level...it works... I really don't understand what's Wong.
@lostation can you share a demo
Re Triniwiz, Sorry no I cannot share as it is a commercial private app. And I really don't have time to plunk anything.
Anyway... Further investigation... under a phone it works as it should ! So it is just under tablet and when it is located into sub component. I use the pager at different places but these are using the full width. So As you mentioned it related to the measurement in somehow. Cause first display...there's non pager...then when it's some kind of refresh...it appears.
Make sure to check the demo app(s) for sample usage
I followed the example for angular static views definitions
Make sure to check the existing issues in this repository
Didn't find any kind of same issue
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital letter.
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
tns --version
to fetch it)node_modules/tns-core-modules/package.json
file in your project)"tns-android"
and"tns-ios"
properties in thepackage.json
file of your project)Plugin(s): (look for the version numbers in the
package.json
file of your project and paste your dependencies and devDependencies here)"nativescript-angular": "~8.21.0", "nativescript-dna-deviceinfo": "^2.4.3", "nativescript-drop-down": "^5.0.4", "nativescript-google-maps-sdk": "^2.9.1", "nativescript-iqkeyboardmanager": "^1.5.1", "nativescript-material-button": "3.1.5", "nativescript-material-cardview": "3.1.5", "nativescript-material-ripple": "3.1.5", "nativescript-material-textfield": "3.1.5", "nativescript-menu": "^1.1.3", "nativescript-pager": "^12.0.0-alpha.3", "nativescript-plugin-firebase": "^10.3.3", "nativescript-secure-storage": "^2.6.0", "nativescript-sqlite": "^2.3.3", "nativescript-toasty": "^3.0.0-alpha.2", "nativescript-ui-autocomplete": "^6.0.0", "nativescript-ui-calendar": "^6.0.0", "nativescript-ui-chart": "^7.1.1", "nativescript-ui-gauge": "^6.0.0", "nativescript-ui-listview": "^8.0.1", "nativescript-ui-sidedrawer": "^8.0.0",
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
Just put this into a component then add the component's selector into first tabStripItem of a Tabs
I've tried to refresh, requestLayout, disabled, enabled... within onPagerLoaded callback
onPagerLoaded(args: EventData) { this.logger.debug('onPagerLoaded'); const pager = args.object as Pager;
but it only shows first the gray background of the container... it only works if I go to two tabs away then going back to the first one...and then the pager is redrawn and shows up the slides...
Any idea how to force redrawing, reloading or whatever... ??? Thanks a lot Triniwiz ;)