From a7bfadc2cd074100aa93d35737fecf09362fb478 Mon Sep 17 00:00:00 2001 From: Hoang Pham Huu Date: Mon, 9 Feb 2015 17:09:09 +0700 Subject: [PATCH] Add autoresizingMask for containerView inside _contentView --- iCarousel/iCarousel.m | 1 + 1 file changed, 1 insertion(+) 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