Skip to content

Commit

Permalink
Fix Textarea sizing when typing
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelHolec committed Dec 14, 2023
1 parent afd5fef commit b65536e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Orbit/Components/Textarea.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public struct Textarea: View, TextFieldBuildable {
FieldWrapper(label, message: message, messageHeight: $messageHeight) {
InputContent(state: state, message: message, isFocused: isFocused) {
textView
.alignmentGuide(.firstTextBaseline) { dimension in
// Required to fix resizing issues when typing
dimension[.top]
}
}
}
}
Expand Down

0 comments on commit b65536e

Please sign in to comment.