Skip to content

Commit a2302cb

Browse files
committed
fix for indicators being off center
1 parent 3a96b4a commit a2302cb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

nativescript-slides.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export class SlideContainer extends AbsoluteLayout {
275275
if (this.disablePan === false) {
276276
this.applySwipe(this.pageWidth);
277277
}
278-
278+
279279
if (this.pageIndicators) {
280280
this.setActivePageIndicator(this.currentPanel.index);
281281
}
@@ -493,6 +493,7 @@ export class SlideContainer extends AbsoluteLayout {
493493
AbsoluteLayout.setTop(footerInnerWrap, 0);
494494

495495
footerInnerWrap.orientation = 'horizontal';
496+
footerInnerWrap.horizontalAlignment = 'center';
496497
footerInnerWrap.width = this.pageWidth / 2;
497498

498499
let index = 0;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-slides",
3-
"version": "2.2.3",
3+
"version": "2.2.4",
44
"description": "NativeScript Slides plugin.",
55
"main": "nativescript-slides.js",
66
"nativescript": {

0 commit comments

Comments
 (0)