Skip to content
New issue

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

Using edgeToEdge breaks windowSoftInputMode #1025

Open
Jean-Daniel opened this issue Jan 28, 2025 · 2 comments
Open

Using edgeToEdge breaks windowSoftInputMode #1025

Jean-Daniel opened this issue Jan 28, 2025 · 2 comments

Comments

@Jean-Daniel
Copy link

Jean-Daniel commented Jan 28, 2025

When using edgeToEdge, the view size is no longer adjusting when the keyboard is visible, resulting in buttons hidden behind the keyboard.

Without edgeToEdge call in the main Activity:

Image

With EdgeToEdge call in the main Activity.

Image

@thewyp
Copy link

thewyp commented Jan 28, 2025 via email

@Jean-Daniel
Copy link
Author

Actually, it looks like it is possible to fix that issue by adjusting the main composition padding:

@AndroidEntryPoint
class TodoActivity : ComponentActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContent {
            TodoTheme {
                TodoNavGraph(Modifier.safeDrawingPadding())
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants