mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
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:
parent
e09d8ab494
commit
59ad155cb7
1 changed files with 5 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue