File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -264,8 +264,10 @@ export default class Carousel extends BaseComponent {
264264
265265 if ( pageControlPosition ) {
266266 const pagesCount = presenter . getChildrenLength ( this . props ) ;
267- const containerStyle = pageControlPosition === PAGE_CONTROL_POSITIONS . UNDER ?
268- { marginVertical : 16 } : { position : 'absolute' , bottom : 16 , alignSelf : 'center' } ;
267+ const containerStyle =
268+ pageControlPosition === PAGE_CONTROL_POSITIONS . UNDER
269+ ? this . styles . pageControlContainerStyleUnder
270+ : this . styles . pageControlContainerStyle ;
269271
270272 return (
271273 < PageControl
@@ -340,6 +342,14 @@ function createStyles() {
340342 position : 'absolute' ,
341343 top : 12 ,
342344 right : 12
345+ } ,
346+ pageControlContainerStyle : {
347+ position : 'absolute' ,
348+ bottom : 16 ,
349+ alignSelf : 'center'
350+ } ,
351+ pageControlContainerStyleUnder : {
352+ marginVertical : 16
343353 }
344354 } ) ;
345355}
You can’t perform that action at this time.
0 commit comments