Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23373] Windows: Label with height should render text vertically centered

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-05-13T13:38:41.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsqe-5.3.0
ReporterKota Iguchi
AssigneeKota Iguchi
Created2016-05-13T03:32:25.000+0000
Updated2016-05-18T18:29:15.000+0000

Description

Label with height should set label height accordingly and render text vertically center by default.
var win = Ti.UI.createWindow({ backgroundColor: 'white' });

var view = Ti.UI.createLabel({
    text: "ABC",
    height: 100,
    width: 100,
    color: "#C41230",
    backgroundColor: "#F2D0D6",
    textAlign: "center",
});

win.add(view);
win.open();
*actual* !Actual.PNG|thumbnail!

Attachments

FileDateSize
Actual.PNG2016-05-13T03:31:43.000+00001848

Comments

  1. Kota Iguchi 2016-05-13

    https://github.com/appcelerator/titanium_mobile_windows/pull/686
  2. Josh Longton 2016-05-18

    Verified as fixed. Tested on: Nokia Lumia 928 (8.1) Windows Simulator (8.1) Microsoft Lumia 640 (10) Windows Simulator (10) Windows 10 Studio: 4.6.0.201605180604 Ti SDK: 5.3.0.v20160516040258 Appc NPM: 4.2.5-5 App CLI: 5.3.0-45 Node v0.12.7 *Closing Ticket.*

JSON Source