Skip to content

Commit bc722c3

Browse files
Merge pull request #26 from TheOriginalJosh/page-indicators
slides always displaying incorrectly
2 parents 7420f52 + 999a95f commit bc722c3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

nativescript-slides.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,17 +210,17 @@ export class SlideContainer extends AbsoluteLayout {
210210
}
211211
});
212212

213-
// if (this.pageIndicators) {
214-
this._footer = this.buildFooter(slides.length, 0);
215-
this.insertChild(this._footer, this.getChildrenCount());
216-
// this.setActivePageIndicator(0);
217-
//}
213+
if (this.pageIndicators) {
214+
this._footer = this.buildFooter(slides.length, 0);
215+
this.insertChild(this._footer, this.getChildrenCount());
216+
// this.setActivePageIndicator(0);
217+
}
218218

219219

220220
this.currentPanel = this.buildSlideMap(slides);
221221
this.currentPanel.panel.translateX = -this.pageWidth;
222222

223-
if(this.disablePan === false) {
223+
if (this.disablePan === false) {
224224
this.applySwipe(this.pageWidth);
225225
}
226226

@@ -234,7 +234,7 @@ export class SlideContainer extends AbsoluteLayout {
234234
}
235235
});
236236

237-
if(this.disablePan === false) {
237+
if (this.disablePan === false) {
238238
this.applySwipe(this.pageWidth);
239239
}
240240
let topOffset = Platform.screen.mainScreen.heightDIPs - 105;
@@ -312,7 +312,7 @@ export class SlideContainer extends AbsoluteLayout {
312312
this.currentPanel.panel.off('pan');
313313
this.currentPanel = panel;
314314

315-
if(this.disablePan === false) {
315+
if (this.disablePan === false) {
316316
this.applySwipe(this.pageWidth);
317317
}
318318
this.setActivePageIndicator(this.currentPanel.index);

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": "1.5.0",
3+
"version": "1.5.1",
44
"description": "NativeScript Slides plugin.",
55
"main": "nativescript-slides.js",
66
"nativescript": {

0 commit comments

Comments
 (0)