diff --git a/iCarousel/iCarousel.m b/iCarousel/iCarousel.m index be33a13f1a..576a0731e0 100644 --- a/iCarousel/iCarousel.m +++ b/iCarousel/iCarousel.m @@ -786,6 +786,7 @@ - (UIView *)containView:(UIView *)view frame.size.width = _vertical? frame.size.width: _itemWidth; frame.size.height = _vertical? _itemWidth: frame.size.height; UIView *containerView = [[UIView alloc] initWithFrame:frame]; + containerView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; #ifdef ICAROUSEL_MACOS