[ReactNative] revert "prevent ScrollView content offset from changing during layout"

This commit is contained in:
Kevin Gozali 2015-07-28 19:14:22 -07:00
parent f1b22e87f1
commit 87ce2d635b
1 changed files with 0 additions and 3 deletions

View File

@ -461,10 +461,7 @@ RCT_NOT_IMPLEMENTED(-initWithCoder:(NSCoder *)aDecoder)
[super layoutSubviews];
RCTAssert(self.subviews.count == 1, @"we should only have exactly one subview");
RCTAssert([self.subviews lastObject] == _scrollView, @"our only subview should be a scrollview");
CGPoint originalOffset = _scrollView.contentOffset;
_scrollView.frame = self.bounds;
_scrollView.contentOffset = originalOffset;
[RCTView autoAdjustInsetsForView:self
withScrollView:_scrollView