HPGrowingTextView: fix 2nd line of chat not displaying properly when building with xcode7 for ioS9 by rounding to upper value

This commit is contained in:
Gautier Pelloux-Prayer 2015-10-02 17:00:26 +02:00
parent e09d8ab494
commit 59ad155cb7

View file

@ -366,13 +366,11 @@
CGRect size = [textToMeasure boundingRectWithSize:CGSizeMake(CGRectGetWidth(frame), MAXFLOAT)
options:NSStringDrawingUsesLineFragmentOrigin
context:nil];
return CGRectGetHeight(size) + fudgeFactor.height;
}
else
{
return self.internalTextView.contentSize.height;
}
return ceil(CGRectGetHeight(size) + fudgeFactor.height);
} else {
return self.internalTextView.contentSize.height;
}
#else
return self.internalTextView.contentSize.height;
#endif