diff --git a/SwipeView/SwipeView.m b/SwipeView/SwipeView.m index 04e942b..386e0fe 100755 --- a/SwipeView/SwipeView.m +++ b/SwipeView/SwipeView.m @@ -546,7 +546,7 @@ - (void)setFrameForView:(UIView *)view atIndex:(NSInteger)index view.center = CGPointMake(center.x, _scrollView.frame.size.height/2.0f); } - view.bounds = CGRectMake(0.0f, 0.0f, _itemSize.width, _itemSize.height); + view.bounds = CGRectMake(view.bounds.origin.x, view.bounds.origin.y, _itemSize.width, _itemSize.height); if (disableAnimation && animationEnabled) [UIView setAnimationsEnabled:YES]; }