Skip to content

Commit

Permalink
No need for this
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Romero Zurbuchen authored and Ignacio Romero committed Sep 28, 2015
1 parent ed8a46d commit aba4298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/UIScrollView+EmptyDataSet.m
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,8 @@ - (void)setupConstraints
}
else {
CGFloat width = CGRectGetWidth(self.frame) ? : CGRectGetWidth([UIScreen mainScreen].bounds);
CGFloat padding = [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone ? 20.0 : roundf(width/16.0);
CGFloat verticalSpace = self.verticalSpace ? : 11.0;
CGFloat padding = roundf(width/16.0);
CGFloat verticalSpace = self.verticalSpace ? : 11.0; // Default is 11 pts

NSMutableArray *subviewStrings = [NSMutableArray array];
NSMutableDictionary *views = [NSMutableDictionary dictionary];
Expand Down

0 comments on commit aba4298

Please sign in to comment.