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

Colton Idle

01/13/2022, 10:50 PM
If I have a scrollable row of cards with elevation, and I overscroll I get clipping of the elevation/shadow. Is there a way to prevent that? Bug or intended?
k

K Merle

01/14/2022, 8:57 AM
Have you tried adding padding to a card, or to a cards parent?
c

Colton Idle

01/14/2022, 12:43 PM
Nope. I can't add padding as the design is as expected right now (there a component under it that has its own padding). I guess I could try to work it out with removing padding from one and adding to this, but I guess my issue is more with the fact that compose isn't supposed to clip by default.
k

K Merle

01/14/2022, 1:37 PM
I had the same issue with cards. Unfortunately I can't remember did I solved an issue, or removed card and added elevation and rounded corner to a different element to avoid shadow cut-off.
a

Andrey Kulikov

01/14/2022, 2:47 PM
c

Colton Idle

01/14/2022, 9:51 PM
In my case, its just a scrollable Row, not a horizontalPager.
d

dazza5000

04/06/2022, 5:04 PM
We have a similar issue with a LazyRow