{ "id": "148621", "key": "TIMOB-18990", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-11T14:49:07.000+0000", "created": "2015-06-09T19:25:08.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-4.1.0" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [ { "id": "48070", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "148685", "key": "TIMOB-18997", "fields": { "summary": "Windows: auto layout support", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-07-01T18:53:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen setting the width of a label to *auto*, it appears that the width is not being set properly when the string for the label text contains both letters and numbers, see the attached screenshots for references.\r\n\r\n*Ti.UI.FILL and Ti.UI.SIZE work with no problems*\r\n\r\nAlthough auto has been replaced by Ti.UI.FILL and Ti.UI.SIZE the default app still uses it.\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Add the attached app.js to an existing project and build using {{appc run -p windows -T wp-emulator}}\r\n2. Switch between tab 1 and tab two\r\n3. Tap the label on tab 1\r\n\r\nh5.Actual Result\r\n\r\n2. The text for the label on tab 1 is not shown correctly, I am Window is displayed rather than I am Window 1\r\n3. The alert displays the actual text for the label\r\n\r\nh5.Expected Result\r\n\r\nThe label on tab 1 should display the whole string *I am Window 1*", "attachment": [ { "id": "55802", "filename": "app.js", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-06-10T18:08:47.000+0000", "size": 1179, "mimeType": "application/javascript" }, { "id": "55804", "filename": "autoWidthNumber.PNG", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-06-10T18:00:53.000+0000", "size": 34732, "mimeType": "image/png" }, { "id": "55803", "filename": "autoWidthWord.PNG", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-06-10T18:00:53.000+0000", "size": 45802, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Setting auto for width on labels doesn't work for strings of a certain length", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 8.1\r\nAppc CLI: 4.0.1\r\nTitanium SDK: 4.1.0.v20150608135245\r\nLumia 1020: 8.1\r\nEmulator 8.1 WVGA 4 inch 512MB", "closedSprints": [ { "id": 420, "state": "closed", "name": "2015 Sprint 12 Windows", "startDate": "2015-06-07T01:15:19.706Z", "endDate": "2015-06-21T01:15:00.000Z", "completeDate": "2015-06-20T23:02:18.410Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "354787", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~eharris] I don't see any attached screenshots...", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-06-10T17:54:06.000+0000", "updated": "2015-06-10T17:54:06.000+0000" }, { "id": "354790", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~cwilliams] woops, attached now", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-06-10T18:09:04.000+0000", "updated": "2015-06-10T18:09:04.000+0000" }, { "id": "354793", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Doing some more investigation into this and it appears to be that certain strings do show, for example {{I am Window 1111}} doesn't show but {{I am Window 111}} does. I think this is more down to the length of the string rather than what the string contains", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-06-10T18:27:49.000+0000", "updated": "2015-06-10T18:40:00.000+0000" }, { "id": "354822", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've taken a look at what's happening here. It seems we don't calculate the dimensions correctly after passing either {{auto}}, {{UI.SIZE}} or {{UI.FILL}}.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/LayoutEngine/src/ParseProperty.cpp#L32\r\n\r\nThis will always return zero in this case.\r\n\r\nWe don't calculate anything based on the screen resolution of the device.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-10T23:53:57.000+0000", "updated": "2015-06-11T00:11:10.000+0000" }, { "id": "354866", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "So as far as I see actual {{auto}} layout behavior should be either {{FILL}} or {{SIZE}} depending on components described in [Transitioning to the New UI Layout System|http://docs.appcelerator.com/platform/latest/#!/guide/Transitioning_to_the_New_UI_Layout_System] (For example, {{Label}} should treat {{auto}} as same as specifying {{SIZE}}), but there's no implementation for it in {{LayoutEngine}}. I'm planning to add function to {{ViewLayoutDelegate}} to inform how components should layout against {{auto}}.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-11T09:13:19.000+0000", "updated": "2015-06-11T09:13:19.000+0000" }, { "id": "354872", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/276", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-11T13:17:17.000+0000", "updated": "2015-06-11T13:17:17.000+0000" }, { "id": "356594", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nSetting width to auto now works fine.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.0.201506261427\r\nTi SDK: 4.1.0.v20150701091830\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0-1\r\nAPPC CLI: 4.1.0-4 \r\nWindows emulator : 8.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-01T18:53:11.000+0000", "updated": "2015-07-01T18:53:11.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }