mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 04:18:52 +08:00 
			
		
		
		
	fix(ios): box shadow border radius (#10142)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							8b7d5ab5fc
						
					
				
				
					commit
					6948f7c032
				
			@ -736,7 +736,12 @@ function drawBoxShadow(nativeView: NativeScriptUIView, view: View, boxShadow: CS
 | 
			
		||||
	);
 | 
			
		||||
 | 
			
		||||
	// this should match the view's border radius
 | 
			
		||||
	const cornerRadius = Length.toDevicePixels(<CoreTypes.LengthType>view.style.borderRadius, 0.0);
 | 
			
		||||
	let cornerRadius: number;
 | 
			
		||||
	if (typeof view.style.borderRadius !== 'number') {
 | 
			
		||||
		cornerRadius = Length.toDevicePixels(<CoreTypes.LengthType>view.style.borderRadius, 0.0);
 | 
			
		||||
	} else {
 | 
			
		||||
		cornerRadius = view.style.borderRadius;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// apply spreadRadius by expanding shadow layer bounds
 | 
			
		||||
	// prettier-ignore
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user