mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
Fixes vector-im/element-ios/issues/6441 - Incorrect timeline item text height calculation
This commit is contained in:
committed by
Stefan Ceriu
parent
c0ad32079e
commit
0f16585853
@@ -538,6 +538,9 @@
|
||||
|
||||
selectedTextView.frame = CGRectMake(0, 0, _maxTextViewWidth, 0);
|
||||
selectedTextView.attributedText = attributedText;
|
||||
|
||||
// Force the layout manager to layout the text, fixes problems starting iOS 16
|
||||
[selectedTextView.layoutManager ensureLayoutForTextContainer:selectedTextView.textContainer];
|
||||
|
||||
CGSize size = [selectedTextView sizeThatFits:selectedTextView.frame.size];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user