Merge pull request #76 from VladiMihaylenko/vm-master

Fixed incorrect position of next turn (iPhone).
This commit is contained in:
Илья Гречухин 2015-09-30 13:38:19 +03:00
commit 32443e0671
3 changed files with 2 additions and 2 deletions

View file

@ -168,7 +168,7 @@
{
[self removePanel:self.nextTurnPanel];
}
[self.drawer drawPanels:self.helperPanels];
[self.drawer invalidateTopBounds:self.helperPanels topView:self.navigationDashboard];
[self.navigationDashboard setNeedsLayout];
}

View file

@ -5,7 +5,6 @@
@property (weak, nonatomic, readonly) UIView * topView;
- (instancetype)initWithTopView:(UIView *)view;
- (void)drawPanels:(NSArray *)panels;
- (void)invalidateTopBounds:(NSArray *)panels topView:(UIView *)view;
@end

View file

@ -31,6 +31,7 @@ static CGFloat const kOffsetBetweenPanels = 8.;
{
[self.topView layoutIfNeeded];
[(MWMRouteHelperPanel *)panels.firstObject setTopBound:self.topView.maxY + kOffsetBetweenPanels];
[self drawPanels:panels];
});
}