Skip to content

Commit fdf3325

Browse files
authored
Text does not always expand upon touch (Input Screen) (#6483)
Task/Issue URL: https://app.asana.com/1/137249556945/project/1200204095367872/task/1210902938749434?focus=true ### Description - Fixes a bug where the text does not always immediately expand to fill the Input Field upon touch. ### Steps to test this PR - [ ] Go to a long URL (An amazon listing works) - [ ] Verify that the text expands to fill the input field upon touch
1 parent b6ff154 commit fdf3325

File tree

1 file changed

+3
-0
lines changed
  • duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/inputscreen/ui/view

1 file changed

+3
-0
lines changed

duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/inputscreen/ui/view/InputModeWidget.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ class InputModeWidget @JvmOverloads constructor(
8989
beginChangeBoundsTransition()
9090
inputField.maxLines = if (value) MAX_LINES else 1
9191
inputField.setHorizontallyScrolling(!value)
92+
inputField.post {
93+
inputField.requestLayout()
94+
}
9295
}
9396
}
9497

0 commit comments

Comments
 (0)