[TIMOB-28391] iOS: Vertical text align does not work with string values (parity)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-08-17T09:29:56.000+0000 |
Affected Version/s | Release 9.3.2, Release 10.1.0, Release 10.0.0 |
Fix Version/s | Release 10.1.0 |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Vijay Singh |
Created | 2021-03-13T10:35:20.000+0000 |
Updated | 2021-08-17T09:29:56.000+0000 |
Description
Setting the "verticalAlign" property with a string value on iOS does not work, while it works fine on Android is [documented](https://titaniumsdk.com/api/titanium/ui/label.html#verticalalign) as a
Number|String
property.
*Example*:
const win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
const view = Ti.UI.createView({
backgroundColor: '#f0f0f0',
height: 200,
width: 200
});
view.add(Ti.UI.createLabel({
text: 'Hello world',
verticalAlign: 'top',
height: Ti.UI.FILL,
width: Ti.UI.FILL
}));
win.add(view);
win.open();
PR: https://github.com/appcelerator/titanium_mobile/pull/12566