[AC-6576] iOS set clipMode disable shadow
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Alloy, Appcelerator CLI |
Labels | borderradius, ios, iphone, view |
Reporter | Pietro Granati |
Assignee | Abir Mukherjee |
Created | 2020-07-21T08:47:26.000+0000 |
Updated | 2020-07-23T08:25:35.000+0000 |
Description
I have a square angles view inside a borderRadius view.
Since the child view go "out of borders" I set clipMode to enabled.
This solve the angles but disable the shadow.
//Alloy:
<View class="schedaSTD">
<View height="40%" top="0" backgroundColor="#76c2af">
<ImageView top="10" width="60%" image="/images/compila.png"></ImageView>
</View>
</View>
//Tss
".schedaSTD[platform=ios]":{
left:'15',
backgroundColor:"#FFF",
borderRadius:'10',
height:'80%',
width:'250',
viewShadowColor: '#c7c7c8',
viewShadowOffset: {x:'0',y:'2'},
viewShadowRadius: '3',
clipMode: Titanium.UI.iOS.CLIP_MODE_ENABLED
}
Setting 'clipMode' to Titanium.UI.iOS.CLIP_MODE_ENABLED should clip the shadow as well. It should be expected behavior. Was it working in any previous SDK? If so, please provide reproducible test case (classic). We'll look in this.
Why it should? So I can't create a container view with border radius and shadow with inside view?