[TIMOB-10838] iOS: verticalAlign does not work for TiUILabel
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-26T08:36:13.000+0000 |
Affected Version/s | Release 2.1.2 |
Fix Version/s | Release 3.0.2 |
Components | iOS |
Labels | api |
Reporter | Ben S. |
Assignee | Shameer Jan |
Created | 2012-08-16T15:34:16.000+0000 |
Updated | 2017-03-21T22:14:26.000+0000 |
Description
Problem
The "verticalAlign" attribute doesn't set the vertical alignment of labels.Test case
var win = Ti.UI.createWindow();
var view = Ti.UI.createView({backgroundColor:"white"});
var label = Ti.UI.createLabel({
left:50,
top:50,
height:300,
width:200,
backgroundColor:"red",
color:"white",
text:"This is a top-aligned label",
verticalAlign:Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP
});
view.add(label);
win.add(view);
win.open();
Attachments
File | Date | Size |
---|---|---|
iOS Simulator Screen shot Mar 26, 2013 11.54.32 AM.png | 2013-03-26T08:36:52.000+0000 | 8827 |
Screen Shot 2012-08-17 at 12.31.58 AM.png | 2012-08-16T15:34:16.000+0000 | 57061 |
The verticalAlign property is only valid for MobileWeb. Check our documentation at this page for more information: http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.UI.Label-property-verticalAlign Moved the bug as a new feature request.
I don't think this is only mobile, cause it's also in documentation: http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.UI.Label-property-verticalAlign This works perfectly with current unstable release (I use 2.2.0 from August). Only with 2.1 it doesn't work.
@Ben - As mentioned in the link you specified (using HTML5 icon), this is a Mobile Web only property in 2.1 release.
Hi neeraj, thx. So this is a feature of the next upcoming major release?
Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 5.1,6.0
Closing ticket as the issue cannot be reproduced and due to the above comments.