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

vanpra

02/26/2021, 8:10 PM
Hey, I'm using a Dialog composable and am offsetting it's content by some amount. Previously this would result in any portion of the offset content which is not in the dialog area to not be shown. However after this update it seem like this the content is still shown outside the dialog. I was just wondering if this is a bug or intended behaviour?
j

jim

02/26/2021, 8:24 PM
How are you doing the offsetting? Screenshot of result?
l

Louis Pullen-Freilich [G]

02/26/2021, 8:26 PM
If you want to clip the content outside the dialog, you can just use
Modifier.clipToBounds()
v

vanpra

02/26/2021, 8:27 PM
Thanks, that fixes it
2 Views