[TIMOB-23373] Windows: Label with height should render text vertically centered
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-05-13T13:38:41.000+0000 |
Affected Version/s | Release 5.3.0 |
Fix Version/s | Release 5.3.0 |
Components | Windows |
Labels | qe-5.3.0 |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2016-05-13T03:32:25.000+0000 |
Updated | 2016-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
File | Date | Size |
---|---|---|
Actual.PNG | 2016-05-13T03:31:43.000+0000 | 1848 |
https://github.com/appcelerator/titanium_mobile_windows/pull/686
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.*