Skip to content

Commit

Permalink
fixing bug where the optional bar/line under the top scroller wouldn'…
Browse files Browse the repository at this point in the history
…t resize with the view's width when the device was rotated into landscape
  • Loading branch information
Tom Thorpe committed Sep 20, 2014
1 parent 4520881 commit 14789cd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ - (void)viewDidLoad
[self.view addSubview:topScrollViewWrapper]; //put the wrapper in this view.
nextYPosition += self.titleScrollerHeight;

//line underneith the top scroller
UIView *barView = [[UIView alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(topScrollViewWrapper.frame) - self.titleScrollerBottomEdgeHeight, CGRectGetWidth(topScrollViewWrapper.frame), self.titleScrollerBottomEdgeHeight)];
barView.backgroundColor = self.titleScrollerBottomEdgeColour;
barView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
[topScrollViewWrapper addSubview:barView];
[topScrollViewWrapper bringSubviewToFront:barView];
}
Expand Down

0 comments on commit 14789cd

Please sign in to comment.