Is `.shadow` somehow stretching with the size of t...
# compose-desktop
a
Is
.shadow
somehow stretching with the size of the component?
Copy code
Column {
            Box(modifier = Modifier.padding(16.dp).size(width = 800.dp, height = 200.dp).shadow(4.dp).background(Color.White))
            Box(modifier = Modifier.padding(16.dp).size(width = 1600.dp, height = 200.dp).shadow(4.dp).background(Color.White))
        }
I thought it was related to the ambient and spot color parameters, but it isn't. Changing them has no impact?
c
this isn't an order of modifiers thing is it?
a
I checked, and no. Ordering the modifiers doesn't matter.
t
I think the shadow is calculated based on some kind of virtual sun light. And when the edge moves away from the center the shadow gets bigger.
a
Yup, that’s the spotlight parameter. But the ambient parameter doesn’t do anything