We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d256c9c + 8f28b98 commit a33b0c8Copy full SHA for a33b0c8
CSGrowingTextView/CSGrowingTextView/CSGrowingTextView.m
@@ -242,17 +242,8 @@ - (CGFloat)textViewHeight {
242
_internalTextView.textContainerInset.top + _internalTextView.textContainerInset.bottom :
243
-iOS6Insets.top + (-iOS6Insets.bottom));
244
245
- CGFloat lineHeight = _internalTextView.font.lineHeight;
246
- if (lineHeight) {
247
- lineHeight = (lineHeight - (NSInteger)lineHeight < 0.5 ?
248
- lineHeight - (lineHeight - (NSInteger)lineHeight) + 0.5 :
249
- ceil(lineHeight));
250
-
251
- return ceil(lineHeight * lines + insets);
252
- }
253
- else {
254
255
+ CGFloat lineHeight = ceil(_internalTextView.font.lineHeight);
+ return ceil(lineHeight * lines + insets);
256
}
257
258
#pragma mark - Responders
0 commit comments