Fixed
Status Update
Comments
ma...@google.com <ma...@google.com>
mo...@google.com <mo...@google.com> #2
Running into a similar issue, any update on this?
sa...@gmail.com <sa...@gmail.com> #3
This is a platform behavior change.
mo...@google.com <mo...@google.com> #4
Reassigning to current owner per go/androidx/owners.
va...@google.com <va...@google.com> #5
Re-triaging by request.
mo...@google.com <mo...@google.com> #6
Any progress?
Description
Jetpack Compose version: 1.2.0-rc02
Jetpack Compose component(s) used: Foundation
Android Studio Build: #AI-221.4165.146.2211.8713749
Kotlin version: 1.6.21
When accessing the window insets via
asPaddingValues()
it does not account for the already consumed insets further in the hierarchy. E.g.The
PaddingValues
could be added to aLazyColumn
or similar layout that need extra padding, but only when a parent has not already consumed them. As far as I can tell it is not possible to access the amount of consumed insets, which makes it difficult to achieve this kind of layout.My feature request is either having
asPaddingValues
already account for the consumed insets (just likeModifier.navigationBarPadding()
) or at least provide read-only access to the amount of consumed insets.