We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7024d commit b1450b6Copy full SHA for b1450b6
Sources/CodeEditTextView/TextLine/TextLine.swift
@@ -36,8 +36,9 @@ public final class TextLine: Identifiable, Equatable {
36
// Both max widths we're comparing are finite
37
maxWidth.isFinite
38
&& (self.maxWidth ?? 0.0).isFinite
39
- // The new max width is less than the required space, so we need to layout again.
40
- && maxWidth < (self.maxWidth ?? 0.0)
+ // We can't use `<` here because we want to calculate layout again if this was previously constrained to a
+ // small layout size and needs to grow.
41
+ && maxWidth != (self.maxWidth ?? 0.0)
42
)
43
}
44
0 commit comments