Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24554] Windows: Ti.UI.FILL resizes Label incorrectly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-04-10T10:03:25.000+0000
Affected Version/sRelease 6.0.3
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2017-04-04T02:02:02.000+0000
Updated2017-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

FileDateSize
actual.png2017-04-04T02:00:58.000+00003735
expected.png2017-04-04T02:00:41.000+00003771

Comments

  1. Kota Iguchi 2017-04-04

    https://github.com/appcelerator/titanium_mobile_windows/pull/966
  2. Samir Mohammed 2017-04-24

    Verified fix in 6.1.0.v20170421082637. Test and other information can be found at https://github.com/appcelerator/titanium_mobile_windows/pull/966.

JSON Source