From 3f9f6c71a0e68363ecec69504ce31321d0cedc55 Mon Sep 17 00:00:00 2001 From: "Y.Hirano" Date: Thu, 8 Oct 2015 00:15:09 +0900 Subject: [PATCH] Fixed indicatorView y-pos is displaced when menubar height changed. Reposition indicatorView y-position when RMPScrollingMenuBar#barHeight changed. --- Pod/Classes/RMPScrollingMenuBar.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Pod/Classes/RMPScrollingMenuBar.m b/Pod/Classes/RMPScrollingMenuBar.m index 50a7813..968bc7a 100644 --- a/Pod/Classes/RMPScrollingMenuBar.m +++ b/Pod/Classes/RMPScrollingMenuBar.m @@ -528,6 +528,12 @@ - (void)setBarHeight:(CGFloat)barHeight _barHeight = barHeight; [self sizeToFit]; + + // indicatorView repositioning. + CGRect frame = _indicatorView.frame; + frame.origin.y = self.bounds.size.height - 4; + _indicatorView.frame = frame; + [self layoutIfNeeded]; }