[ugc] [ios] Fixed action bar layout on iPhone.

This commit is contained in:
Ilya Grechuhin 2017-10-05 10:35:13 +03:00 committed by Roman Kuznetsov
parent a1b6ac0c72
commit 34b203c89e

View file

@ -115,7 +115,7 @@ CGFloat const kMinOffset = 1;
auto const size = frame.size;
self.placePageView.minY = size.height;
auto actionBar = self.actionBar;
actionBar.frame = {{0., size.height - actionBar.height}, {size.width, actionBar.height}};
actionBar.frame = {{0., frame.origin.y + 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.bottomContentOffset