Skip to content

Commit 240417a

Browse files
fix(mobile): bound chip images before initial layout
1 parent 122e45f commit 240417a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎apps/mobile/modules/t3-composer-editor/ios/T3ComposerEditorView.swift‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -979,9 +979,7 @@ public final class T3ComposerEditorView: ExpoView, UITextViewDelegate, UITextDro
979979
if availableWidth <= 0 {
980980
chipsNeedMeasuredWidth = true
981981
}
982-
let maximumLabelWidth = availableWidth > 0
983-
? max(chipFontSize * 3, availableWidth - padding * 2 - iconWidth - iconGap)
984-
: CGFloat.greatestFiniteMagnitude
982+
let maximumLabelWidth = max(chipFontSize * 3, availableWidth - padding * 2 - iconWidth - iconGap)
985983
paragraph.lineBreakMode = .byTruncatingMiddle
986984
attributedLabel.addAttribute(
987985
.paragraphStyle,

0 commit comments

Comments
 (0)