From 8503501a5b22fd5b4ab5690d1e8ae113704cda05 Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Thu, 27 Apr 2017 13:27:06 +0300 Subject: [PATCH] [ios] Set correct place page top bound. --- .../PlacePageLayout/MWMiPhonePlacePageLayoutImpl.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMiPhonePlacePageLayoutImpl.mm b/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMiPhonePlacePageLayoutImpl.mm index 88d4c9797f..df3b416cec 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMiPhonePlacePageLayoutImpl.mm +++ b/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMiPhonePlacePageLayoutImpl.mm @@ -95,9 +95,12 @@ CGFloat const kMinOffset = 1; self.actionBar.minY = self.ownerView.height; [self.scrollView setContentOffset:{} animated:YES]; },^{ + id delegate = self.delegate; + // Workaround for preventing a situation when the scroll view destroyed before an animation finished. + [delegate onPlacePageTopBoundChanged:0]; self.actionBar = nil; self.scrollView = nil; - [self.delegate shouldDestroyLayout]; + [delegate shouldDestroyLayout]; }); }