Skip to content

Commit

Permalink
Use shorthand when setting preferredContentSize
Browse files Browse the repository at this point in the history
  • Loading branch information
zenangst committed May 13, 2015
1 parent 5ea997d commit dba0235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Cells/Popover/FORMSelectFieldCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ - (void)updateContentViewController:(UIViewController *)contentViewController
CGFloat labelHeight = round(self.fieldValuesController.headerView.labelHeight);
CGSize customSize = CGSizeMake(currentSize.width, (FORMFieldValuesCellHeight * self.field.values.count) + labelHeight + headerViewHeight + FORMTitleLabelY);

[self.fieldValuesController setPreferredContentSize:customSize];
self.fieldValuesController.preferredContentSize = customSize;
}
}

Expand Down

0 comments on commit dba0235

Please sign in to comment.