|
|
|
@ -176,7 +176,7 @@ |
|
|
|
- (void)updateCarouselOffset |
|
|
|
{ |
|
|
|
const CGFloat widthToFirstItemCenter = self.frame.size.width / 2; |
|
|
|
const CGFloat leadingPadding = VLCLibraryUIUnits.largeSpacing; |
|
|
|
const CGFloat leadingPadding = VLCLibraryUIUnits.largeSpacing + VLCLibraryUIUnits.mediumSpacing; |
|
|
|
const CGFloat itemWidth = self.carouselView.itemWidth; |
|
|
|
const CGFloat horizontalOffset = (-(widthToFirstItemCenter - itemWidth / 2)) + leadingPadding; |
|
|
|
self.carouselView.contentOffset = NSMakeSize(horizontalOffset, 0); |
|
|
|
|