[ios] Place page rotation fix.

This commit is contained in:
VladiMihaylenko 2016-12-09 14:08:21 +03:00 committed by Илья Гречухин
parent 19a756d136
commit fc5eb69779

View file

@ -101,12 +101,15 @@ CGFloat const kMinOffset = 1;
- (void)onScreenResize:(CGSize const &)size
{
self.scrollView.frame = {{}, size};
UIScrollView * sv = self.scrollView;
sv.frame = {{}, size};
self.placePageView.minY = size.height;
auto actionBar = self.actionBar;
actionBar.frame = {{0., size.height - actionBar.height},
{size.width, actionBar.height}};
[self.delegate onPlacePageTopBoundChanged:self.scrollView.contentOffset.y];
[sv setContentOffset:{0, self.state == State::Top ? self.topContentOffset : self.expandedContentOffset}
animated:YES];
}
- (void)onUpdatePlacePageWithHeight:(CGFloat)height