How can I prevent doubling up of bottom bar paddin...
# compose
b
How can I prevent doubling up of bottom bar padding with NavigationSuiteScaffold? I just have a NSS with a nested Scaffold and a LazyColumn that has a text field at the bottom of 30 other items and when the text field is focused it puts extra padding. For a regular scaffold that has a bottom bar I can consume the insets, but NSS does not provide insets and seems to consume start or bottom insets itself.
screenshot_20241003_161405_my_compose_app.jpg
a
Ah, this is an issue… NSS consumes the insets, but only the insets themselves, and not the size of the navigation UI component as well
😅 1
There’s a new
Modifier.recalculateWindowInsets
method in 1.8.0-alpha03 which can help correct for this sort of case, which you could try: https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#(androidx.compose.ui.Mo[…]ecalculateWindowInsets()
b
Thank you!
a
Hopefully if you apply that to the content within the
NSS
, it should adjust the consumed insets accordingly to correct for the doubling up in padding
b
Is this issue already tracked, do you know? Or do I need to submit one