https://kotlinlang.org logo
#compose
Title
# compose
s

samueldple

06/27/2020, 4:01 PM
It seems that in a
Scaffold
, the content starts underneath the
topBar
but goes to the bottom of the viewport, even if there's a
bottomBar
there. I noticed this because the
VerticalScroller
I added wasn't scrolling due to the content only just going under the
bottomBar
. Is this the correct behaviour, and if so should I be storing the measured height of the bottom bar to fit the main content inside the
Scaffold
?
z

Zach Klippenstein (he/him) [MOD]

06/27/2020, 5:01 PM
Are you passing the modifier through to the VerticalScroller?
s

samueldple

06/27/2020, 6:07 PM
Which modifier? I've tried giving the VerticalScroller a Modifier.fillMaxSize. Have I completely misunderstood something about how modifiers should move between parent-child relationships?
m

manueldidonna

06/27/2020, 6:26 PM
The bodyContent has a
Padding
parameter. Just use it with a Modifier.padding
s

samueldple

06/27/2020, 6:32 PM
Oh great. Completely missed that, thanks!
5 Views