{ "id": "155407", "key": "TIMOB-20513", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-10T21:55:30.000+0000", "created": "2016-03-04T06:56:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "activityindicator", "autolayout" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [ { "id": "50862", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "155306", "key": "TIMOB-20505", "fields": { "summary": "iOS: Inconsistent behavior with various UI components when toggling autolayout", "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": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-11-16T22:20:00.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Steps to reproduce\r\n1. create a new titanium app\r\n2. use this code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar indicator = Ti.UI.createActivityIndicator({\r\n color: 'green',\r\n font: {fontFamily:'Helvetica Neue', fontSize:26, fontWeight:'bold'},\r\n message: 'Loading...',\r\n style: Ti.UI.ActivityIndicatorStyle.DARK\r\n});\r\n\r\nwin.addEventListener('open', function (e) {\r\n indicator.show();\r\n});\r\nwin.add(indicator);\r\nwin.open();\r\n{code}\r\n3. In tiapp.xml, include this property\r\n{code}\r\n\t\r\n\t\ttrue\r\n{code}\r\n\r\nh4. Expected result\r\nindicator spinning with text \"Loading\"\r\n\r\nh4. Actual result\r\nindicator spinning with text \"Loading\" cut off. \r\n\r\nCompare attached screenshots", "attachment": [ { "id": "58428", "filename": "autoLayoutFalse.png", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-04T06:56:11.000+0000", "size": 19888, "mimeType": "image/png" }, { "id": "58427", "filename": "autoLayoutTrue.png", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-04T06:56:11.000+0000", "size": 19764, "mimeType": "image/png" }, { "id": "60656", "filename": "test_autolayout.zip", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-05T21:09:25.000+0000", "size": 24038, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Activity indicator label cut off when auto layout is enabled", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS 9.2.1\r\nLatest SDK Master", "closedSprints": [ { "id": 752, "state": "closed", "name": "2016 Sprint 23 SDK", "startDate": "2016-11-05T00:39:37.027Z", "endDate": "2016-11-19T01:39:00.000Z", "completeDate": "2016-11-29T06:51:57.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "380720", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7885\r\n\r\nTo be discussed: The fix was quite simple, because (I think) the layout given by the iOS VFL (visual format language) was for layouting vertical views, not defining the height. Remove those definitions solved the height.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-25T23:35:09.000+0000", "updated": "2016-03-25T23:35:09.000+0000" }, { "id": "383754", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "As commented by Pedro on PR. Failing review.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-25T02:27:22.000+0000", "updated": "2016-04-25T02:27:22.000+0000" }, { "id": "400456", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Added the native project {{test_autolayout.zip}} to demonstrate the autolayout constraints necessary in the code-base.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-05T21:09:55.000+0000", "updated": "2016-11-05T21:09:55.000+0000" }, { "id": "400554", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] In shared native project , if we increase font size of text , activity indicator get vertical aligned with text . Do we need same or center aligned ?", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-08T04:48:09.000+0000", "updated": "2016-11-08T04:50:06.000+0000" }, { "id": "400556", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": " I have made changes for center alignment of indicator view, which looks better .\r\nPR(master) : https://github.com/appcelerator/titanium_mobile/pull/8589", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-08T05:59:07.000+0000", "updated": "2016-11-08T05:59:07.000+0000" }, { "id": "400741", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR approved and merged. However, there is a possible issue for special use-cases where the developer selects over-sized tests. This seems to happen without autolayout enabled as well, so we might file a general ticket for that behavior. /cc [~vsingh]", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-10T21:56:40.000+0000", "updated": "2016-11-10T21:56:40.000+0000" }, { "id": "401222", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Used the following environment to validate the fix:\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.0.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.1.0.v20161116071014\r\nAppcelerator Studio, build: 4.8.0.201611121409\r\nXcode 8.1 GM\r\n\r\nUsing the sample code in the description, I tested this with Device with SDK 6.0.0 GA, and found that the word \"Loading\" was cutoff at the bottom. I then built the app using SDK 6.1.0.v20161116071014, and found that the word \"Loading\" was not cutoff.\r\n\r\n", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-16T22:19:43.000+0000", "updated": "2016-11-16T22:19:43.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }