nstudio / nstudio/nativescript-plugins

[nativescript-carousel] - NativescriptVue - indicatorOffset doesn't affect the indicator position on ios

Open
#99 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
55
Forks
42
Avg merge
49m
Merged PRs (30d)
1

Description

The app uses the nativescript-carousel to slide between components with a bottom indicator.

With the following configuration, regardless of the values set on indicatorOffset (even tried with negative values), the indicator is shown in the same position (bottom-center) on ios.

Dependencies/DevDependencies
"@nativescript/core": "^8.2.1",
"@nativescript/theme": "^3.0.1",
"@nstudio/nativescript-carousel": "^8.0.3",
"nativescript-vue": "~2.9.0"
"@nativescript/android": "^8.2.2",
"@nativescript/ios": "^8.2.2",
"@nativescript/types": "^8.0.0",
"@nativescript/webpack": "^5.0.4",
"@types/node": "17.0.10",
"nativescript": "^8.1.5",
"nativescript-vue-template-compiler": "^2.9.0",
"typescript": "^4.2.3",
"vue": "^2.6.12"

Template
<Page> <GridLayout height="100%"> <Carousel ref="myCarousel" height="100%" width="100%" showIndicator="true" indicatorColor="orange" indicatorColorUnselected="green" indicatorOffset="100,100" ios:finite="true" android:indicatorAnimation="slide" :selectedPage="selectedIndex" @pageChanged="onSelectedIndexChanged"> <CarouselItem key="page-one"> <PageOne /> </CarouselItem> <CarouselItem key="page-two"> <PageTwo /> </CarouselItem> <CarouselItem key="page-three"> <PageThree /> </CarouselItem> <CarouselItem key="page-four"> <PageFour /> </CarouselItem> <CarouselItem key="page-five"> <PageFive /> </CarouselItem> </Carousel> </GridLayout> </Page>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the provided NativescriptVue template and dependencies, using indicatorOffset values such as "100,100" and negative values on iOS. Then trace the carousel's iOS indicator implementation to determine why the offset is ignored. Done means indicatorOffset changes the indicator position on iOS and the reproduction no longer shows a fixed bottom-center indicator.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.