File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,11 @@ export class SlideContainer extends AbsoluteLayout {
178
178
}
179
179
180
180
let slides : StackLayout [ ] = [ ] ;
181
- this . width = parseInt ( this . slideWidth ) ;
181
+
182
+ if ( ! this . slideWidth ) {
183
+ this . slideWidth = < any > this . pageWidth ;
184
+ }
185
+ this . width = + ( this . slideWidth ) ;
182
186
183
187
this . eachLayoutChild ( ( view : View ) => {
184
188
if ( view instanceof StackLayout ) {
@@ -222,15 +226,15 @@ export class SlideContainer extends AbsoluteLayout {
222
226
if ( this . disablePan === false ) {
223
227
this . applySwipe ( this . pageWidth ) ;
224
228
}
225
-
229
+
226
230
if ( this . pageIndicators ) {
227
231
AbsoluteLayout . setTop ( this . _footer , 0 ) ;
228
232
var pageIndicatorsLeftOffset = this . pageWidth / 4 ;
229
233
AbsoluteLayout . setLeft ( this . _footer , pageIndicatorsLeftOffset ) ;
230
234
this . _footer . width = this . pageWidth / 2 ;
231
235
this . _footer . marginTop = < any > this . _pagerOffset ;
232
236
}
233
-
237
+
234
238
this . positionPanels ( this . currentPanel ) ;
235
239
} , 0 ) ;
236
240
} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nativescript-slides" ,
3
- "version" : " 2.2.8 " ,
3
+ "version" : " 2.2.9 " ,
4
4
"description" : " NativeScript Slides plugin." ,
5
5
"main" : " nativescript-slides.js" ,
6
6
"nativescript" : {
18
18
"demo.android" : " npm run preparedemo && cd demo && tns run android" ,
19
19
"preparedemo" : " npm run build && cd demo && tns plugin remove nativescript-slides && tns plugin add .. && tns install" ,
20
20
"setup" : " npm install && cd demo && npm install && cd .. && npm run build && cd demo && tns plugin add .. && cd .." ,
21
- "livesync.ios" : " cd demo && tns livesync ios --watch" ,
22
- "livesync.android" : " cd demo && tns livesync android --watch" ,
23
21
"ios" : " xcproj --project platforms/ios/YourApp.xcodeproj touch; xcproj --project platforms/ios/Pods/Pods.xcodeproj touch; tns livesync ios --emulator --watch"
24
22
},
25
23
"repository" : {
You can’t perform that action at this time.
0 commit comments