Problem
The same way it is possible to do Vertical Alignment with TextFields, it wold be great to have the property verticalAlign: on Labels as well
verticalAlign:Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP
verticalAlign:Ti.UI.TEXT_VERTICAL_ALIGNMENT_MIDDLE
verticalAlign:Ti.UI.TEXT_VERTICAL_ALIGNMENT_BOTTOM
Test case
var win = Ti.UI.createWindow({
backgroundColor: 'black',
exitOnClose: true,
fullscreen: false,
layout: 'vertical',
title: 'Label verticalAlign Demo'
});
var label = Ti.UI.createLabel({
backgroundColor: 'white',
color: 'black',
text: 'this is a test',
verticalAlign:Ti.UI.TEXT_VERTICAL_ALIGNMENT_BOTTOM,
height: 100
});
win.add(label);
win.open();
Just chiming in on this LH ticket. This is a very common request from iOS developers. There are numerous requests found in the Q/A forum. Here's one such request from the help desk - http://developer.appcelerator.com/helpdesk/view/61071">http://developer.appcelerator.com/helpdesk/view/61071
I looked in the source code and tested this and it is already implemented in Android. It needs to be documented. Have not found it on iOS.
Test Case
Verified fixed with: Titanium Studio, build: 2.1.1.201207271312 SDK version: 2.2.0.v20120813184911 Devices: iPad3 4G (5.1.1) iPhone4 (4.3.5)