Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -878,16 +878,16 @@ class MainActivity : FragmentActivity(), WebViewProvider {
contentWindowInsets = WindowInsets(0, 0, 0, 0)
) { paddingValues ->
// Main content: WebView only
// Use paddingValues to respect TopBar and BottomNav heights
// IMPORTANT: Add IME (keyboard) inset padding so content isn't hidden behind keyboard
// Use paddingValues to respect TopBar and BottomNav heights.
// Avoid applying IME padding here; resizing the WebView during
// keyboard animation causes visible web layout jumps.

AndroidView(
factory = { webView },
modifier = Modifier
.fillMaxSize()
.padding(paddingValues)
.consumeWindowInsets(paddingValues)
.windowInsetsPadding(WindowInsets.ime),
.consumeWindowInsets(paddingValues),
update = { view ->
// Force layout recalculation when Compose size changes
// This ensures viewport units (100vh, 100vw) work correctly
Expand Down
Loading