Assigned
Status Update
Comments
se...@opera.com <se...@opera.com> #2
We could add an API to make the weighted distance customizable, aosp/3271691 has more info.
ra...@google.com <ra...@google.com>
se...@opera.com <se...@opera.com> #3
Here is the full code of the broken composable without extra dependencies:
@Preview
@Composable
private fun ClippedChild() {
Box(
modifier = Modifier
.fillMaxWidth()
.background(color = Color.White)
.height(200.dp)
) {
val elevation = 4.dp
val shape = RectangleShape
Row(
horizontalArrangement = Arrangement.Center,
verticalAlignment = Alignment.Bottom,
modifier = Modifier
.align(Alignment.Center)
.fillMaxWidth()
.graphicsLayer(
shadowElevation = with(LocalDensity.current) { elevation.toPx() },
shape = shape,
clip = false,
)
.background(color = Color.LightGray, shape = shape)
.height(60.dp)
) {
Box(
modifier = Modifier
.requiredSize(72.dp)
.background(color = Color.Red, shape = CircleShape)
)
}
}
}
ba...@gmail.com <ba...@gmail.com> #4
Facing this issue and it's a blocker for updating compose
Description
Jetpack Compose version: 1.7.0-beta01
Jetpack Compose component(s) used: androidx.compose.runtime:runtime androidx.compose.ui:ui androidx.compose.material3:material3
Android Studio Build: Build #AI-233.14808.21.2331.11709847, built on April 12, 2024
Kotlin version: 2.0.0-RC2
Code sample to reproduce:
In Compose 1.6.0 the child IconButton was not clipped, in 1.7.0-beta01 it gets clipped. See the attached image.