Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Request for new functionality
View staffing
Description
Let's say we use
OutlinedTextField
. AlsowindowSoftInputMode="adjustPan"
is set in out AndroidManifest.xml.When we put input focus to the text field, and IME would cover it, the content of the window is panned. Only it is panned just below the text itself, ignoring any visually comfortable paddings and text decorations, such as the bottom outline part in this case - see attached screenshot.
As I figured out by reading the jetpack compose code - the rectangle, that is exposed to IME manager as an area to keep visible is computed from the innermost
Layout
containing bare text. Every decoration and paddings go around this layout. So the system pans content to keep visible just the text, which is technically correct yet looks incorrect for decorated text fields.So it would be nice if
BasicTextField
would takedecorationBox
bounds into account somewhere aroundTextFieldDelegate.notifyFocusedRect()
call.