Skip to main content

content-height-and-width

// Property(ies): contentWidth, contentHeight
// Component(s): Ti.UI.ScrollView
// Unit: numeric values are unitless. Titanium interprets them using ti.ui.defaultunit in tiapp.xml (Alloy template default: dp, not pixels).
// Docs: /docs/best-practices/values-and-units
'.content-w-auto': { contentWidth: Ti.UI.SIZE }
'.content-h-auto': { contentHeight: Ti.UI.SIZE }
'.content-w-screen': { contentWidth: Ti.UI.FILL }
'.content-h-screen': { contentHeight: Ti.UI.FILL }
'.content-auto': { contentWidth: Ti.UI.SIZE, contentHeight: Ti.UI.SIZE }
'.content-screen': { contentWidth: Ti.UI.FILL, contentHeight: Ti.UI.FILL }