Skip to content

Commit 31db4d3

Browse files
fix: content is clipped when lineHeight is set (#473)
# Summary Fixes: #456 This PR adds `invalidateLayout` after applying `lineHeight` inside setValue ## Test Plan You can find reproduction steps inside #456 issue. ## Screenshots / Videos Before: https://github.com/user-attachments/assets/5c76e46b-645c-416a-b48e-bbfed75320bb After: https://github.com/user-attachments/assets/9be17212-21c8-4fc4-b21f-74ca6d386624 ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ❌ | | Android | ✅ |
1 parent eab0c2e commit 31db4d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ class EnrichedTextInputView : AppCompatEditText {
347347
// Scroll to the last line of text
348348
setSelection(text?.length ?: 0)
349349
}
350+
layoutManager.invalidateLayout()
350351
}
351352

352353
fun setCustomSelection(

0 commit comments

Comments
 (0)