[TIMOB-24554] Windows: Ti.UI.FILL resizes Label incorrectly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-04-10T10:03:25.000+0000 |
Affected Version/s | Release 6.0.3 |
Fix Version/s | Release 6.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2017-04-04T02:02:02.000+0000 |
Updated | 2017-04-24T17:24:46.000+0000 |
Description
Setting
Ti.UI.FILL
for Label
resizes Label incorrectly.
*Code to reproduce:*
var win = Ti.UI.createWindow({
backgroundColor: 'green'
}),
width_fill_label = Ti.UI.createLabel({
text: 'I have a width of Ti.UI.FILL',
textAlign: Titanium.UI.TEXT_ALIGNMENT_CENTER,
width: Ti.UI.FILL,
color: 'white',
backgroundColor: 'purple',
height: Ti.UI.SIZE,
});
win.add(width_fill_label);
win.open();
*expected:*
!expected.png|thumbnail!
*actual:*
!actual.png|thumbnail!
Attachments
File | Date | Size |
---|---|---|
actual.png | 2017-04-04T02:00:58.000+0000 | 3735 |
expected.png | 2017-04-04T02:00:41.000+0000 | 3771 |
https://github.com/appcelerator/titanium_mobile_windows/pull/966
Verified fix in 6.1.0.v20170421082637. Test and other information can be found at https://github.com/appcelerator/titanium_mobile_windows/pull/966.