JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.42k stars 1.12k forks source link

Offset difference in IME padding between iOS and Android #5009

Open SebastianAigner opened 3 weeks ago

SebastianAigner commented 3 weeks ago

I have code like this:

Box(Modifier.fillMaxSize().imePadding(), contentAlignment = Alignment.BottomCenter) {
    NewTodoItemButton {
        // ...
    }
}

...that is nested inside a Scaffold. Seems to me like the padding isn't taking into account the surrounding Scaffold on iOS, but it is on Android.

Android (expected):

Screenshot 2024-06-22 at 00 01 52

iOS (actual): IMG_7393

SebastianAigner commented 3 weeks ago

Reproducer attached here: KotlinProject 29.zip

Screenshot 2024-06-22 at 00 40 03