diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-12-09 14:08:21 +0300 |
---|---|---|
committer | Илья Гречухин <i.grechuhin@gmail.com> | 2016-12-09 15:13:49 +0300 |
commit | fc5eb69779e5d0615a9313383eb840abc225d114 (patch) | |
tree | ccea20508013e9f8a41144d9642f7fc97bee00bf /iphone/Maps | |
parent | 19a756d136cb5dfb195d3eb463e2d11ca2bc7341 (diff) |
[ios] Place page rotation fix.
Diffstat (limited to 'iphone/Maps')
-rw-r--r-- | iphone/Maps/Classes/MWMiPhonePlacePageLayoutImpl.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/MWMiPhonePlacePageLayoutImpl.mm b/iphone/Maps/Classes/MWMiPhonePlacePageLayoutImpl.mm index 2d86879d8c..0d72e7e790 100644 --- a/iphone/Maps/Classes/MWMiPhonePlacePageLayoutImpl.mm +++ b/iphone/Maps/Classes/MWMiPhonePlacePageLayoutImpl.mm @@ -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 |