Skip to content

Commit

Permalink
Removed unnecessary white spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
TonnyXu committed Aug 19, 2014
1 parent 3aec3cb commit a269667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NJKScrollFullScreen/UIViewController+NJKFullScreenSupport.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ - (void)setTabBarOriginY:(CGFloat)y animated:(BOOL)animated
CGFloat viewHeight = UIInterfaceOrientationIsPortrait(self.interfaceOrientation) ? viewSize.height : viewSize.width;
CGFloat topLimit = viewHeight - toolBarHeight;
CGFloat bottomLimit = viewHeight;

frame.origin.y = fmin(fmax(y, topLimit), bottomLimit); // limit over moving

[UIView animateWithDuration:animated ? 0.1 : 0 animations:^{
self.tabBarController.tabBar.frame = frame;
}];
Expand Down

0 comments on commit a269667

Please sign in to comment.