Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28391] iOS: Vertical text align does not work with string values (parity)

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2021-08-17T09:29:56.000+0000
Affected Version/sRelease 9.3.2, Release 10.1.0, Release 10.0.0
Fix Version/sRelease 10.1.0
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeVijay Singh
Created2021-03-13T10:35:20.000+0000
Updated2021-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();

Comments

  1. Hans Knöchel 2021-03-13

    PR: https://github.com/appcelerator/titanium_mobile/pull/12566

JSON Source