Project: titanium
Issue TIMOB-19798: CardView: contentPadding(X) and cardCornerRadius should use default unit
The following sample and attached screenshot demonstrate that the 5 {{contentPadding}} properties and {{cardCornerRadius}} do not use the default unit but are a Number used with {{px}}. It should use the default unit like all views. {code:javascript} var win = Ti.UI.createWindow({	layout: 'vertical' }); var card = Ti.UI.Android.createCardView({	top: 20,	left: 20,	right: 20,	contentPadding: 20,	cardCornerRadius: 20 }); card.add(Ti.UI.createLabel({	text: 'PADDING AND TEXT NOT AS EXPECTED',	color: '#000' })); win.add(card); var card = Ti.UI.Android.createCardView({	top: 20,	left: 20,	right: 20,	contentPaddingBottom: 20,	contentPaddingLeft: 20,	contentPaddingRight: 20,	contentPaddingTop: 20,	cardCornerRadius: 20 }); card.add(Ti.UI.createLabel({	text: 'PADDING AND TEXT NOT AS EXPECTED',	color: '#000' })); win.add(card); var view = Ti.UI.createView({	top: 20,	left: 20,	right: 20,	height: Ti.UI.SIZE,	borderRadius: 20,	backgroundColor: 'white' }); view.add(Ti.UI.createLabel({	top: 20,	right: 20,	bottom: 20,	left: 20,	height: Ti.UI.SIZE,	text: 'PADDING & RADIUS AS EXPECTED',	color: '#000' })); win.add(view); win.open(); {code}
Story points: 5