Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6576] iOS set clipMode disable shadow

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAlloy, Appcelerator CLI
Labelsborderradius, ios, iphone, view
ReporterPietro Granati
AssigneeAbir Mukherjee
Created2020-07-21T08:47:26.000+0000
Updated2020-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
}

Comments

  1. Vijay Singh 2020-07-23

    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.
  2. Pietro Granati 2020-07-23

    Why it should? So I can't create a container view with border radius and shadow with inside view?

JSON Source