Skip to content

Commit ae7949a

Browse files
Merge pull request #87 from rauluranga/fix-indicators-visibility
Fix indicators visibility
2 parents f953f7f + c104b3b commit ae7949a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ export function onSlideContainerLoaded(args) {
195195

196196
[Andrew Lo](https://github.com/andrewlo)
197197

198+
[Raúl Uranga](https://github.com/rauluranga/)
199+
198200
And thanks to [Nathan Walker](https://github.com/NathanWalker) for setting up the {N} plugin seed that was used to help get this plugin up and running. More info can be found about it here:
199201
https://github.com/NathanWalker/nativescript-plugin-seed
200202

nativescript-slides.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,15 @@ export class SlideContainer extends AbsoluteLayout {
222222
if (this.disablePan === false) {
223223
this.applySwipe(this.pageWidth);
224224
}
225-
let topOffset = Platform.screen.mainScreen.heightDIPs - 105;
225+
226226
if (this.pageIndicators) {
227-
this._footer.marginTop = <any>'88%';
227+
AbsoluteLayout.setTop(this._footer, 0);
228+
var pageIndicatorsLeftOffset = this.pageWidth / 4;
229+
AbsoluteLayout.setLeft(this._footer, pageIndicatorsLeftOffset);
230+
this._footer.width = this.pageWidth / 2;
231+
this._footer.marginTop = this._pagerOffset;
228232
}
233+
229234
this.positionPanels(this.currentPanel);
230235
}, 0);
231236
});

0 commit comments

Comments
 (0)