commit | e8e2f7ff6b2135b7e2299830fba63d9255bb68b9 | [log] [tgz] |
---|---|---|
author | George Mount | Thu Sep 05 09:49:42 2024 -0700 |
committer | George Mount | Mon Sep 09 09:34:29 2024 -0700 |
tree | 907c9255ea1714051bd6d3e52df47148c452c983 | |
parent | 053e22e2033d6246eb4401e9fe7ed8b5302878eb [diff] |
Don't clip the dialog contents so shadows aren't clipped Fixes: 363027803 The Compose content was clipped, clipping the shadow. This removes the child clipping from the containing FrameLayout. Test: ran DialogScreenShotTest Change-Id: I4cf2076cca5537a314d677edf4c49ee16f417fbb
diff --git a/compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/window/AndroidDialog.android.kt b/compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/window/AndroidDialog.android.kt index cdf731a..0e07822 100644 --- a/compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/window/AndroidDialog.android.kt +++ b/compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/window/AndroidDialog.android.kt
@@ -344,6 +344,7 @@ ) .also { it.gravity = Gravity.CENTER } ) + frameLayout.clipChildren = false ViewCompat.setOnApplyWindowInsetsListener(frameLayout, this) ViewCompat.setWindowInsetsAnimationCallback( frameLayout,