We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug WindowInsets.ime.getBottom return random LAST value on keyboard hide event
Affected platforms
Versions
To Reproduce
fun App() { MaterialTheme { val keyboardController = LocalSoftwareKeyboardController.current Column(Modifier.fillMaxWidth(), horizontalAlignment = Alignment.CenterHorizontally) { TextField( value = "", onValueChange = { }, label = { Text("Label") } ) Text( text = "padding = ${KeyboardPadding().toString()}" ) Button(onClick = { keyboardController?.hide() }) { Text("Hide keyboard") } } } }
ios target:
@Composable actual fun KeyboardPadding(): Int { return WindowInsets.ime.getBottom(LocalDensity.current) }
Additional context
The text was updated successfully, but these errors were encountered:
Fix IME window insets and view offset when keyboard appears (#1199)
a6cdcfe
## Proposed Changes - Extract keyboard listener to a separate class object. - Use keyboard observer to handle scene offset for each compose layer Fixes JetBrains/compose-multiplatform#4016 Fixes JetBrains/compose-multiplatform#4618
ASalavei
Successfully merging a pull request may close this issue.
Describe the bug
WindowInsets.ime.getBottom return random LAST value on keyboard hide event
Affected platforms
Versions
To Reproduce
ios target:
Additional context
Screen.Recording.2024-04-15.at.09.34.32.mov
The text was updated successfully, but these errors were encountered: