{ "id": "87418", "key": "TIMOB-8290", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-03-26T09:34:07.000+0000", "created": "2012-03-06T11:59:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-30T12:51:04.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": "ActivityIndicator doesn't work properly when it's parent container uses the 'layout' property and/or has an 'auto' height/width. Here's an example:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar innerView = Ti.UI.createView({height:'auto',left:5,right:5,layout:'vertical'});\r\n\r\nvar actInd = Titanium.UI.createActivityIndicator({\r\n\tleft:'auto',\r\n\tright:'auto',\r\n\ttop:10,\r\n\tstyle:Titanium.UI.iPhone.ActivityIndicatorStyle.BIG\r\n});\r\ninnerView.add(actInd);\r\nactInd.show();\r\n\r\nvar loadingLabel = Titanium.UI.createLabel({\r\n\tcolor:'white',\r\n\tfont:{fontSize:16,fontWeight:'bold', fontFamily:'Arial'},\r\n\ttextAlign:'center',\r\n\tleft: 0,\r\n\tright:0,\r\n\ttop:20,\r\n\theight:'auto',\r\n\ttext:'Loading'\r\n});\r\ninnerView.add(loadingLabel);\r\n\r\nwin.add(innerView);\r\nwin.open();\r\n\r\n{code}\r\n\r\nAccording to the code, the Activity Indicator should appear above the text, but they render on top of each other.\r\n\r\nh5. Test results:\r\nworks fine on 1.8.2 but not on 2.0 CI", "attachment": [ { "id": "26599", "filename": "iOS Simulator Screen shot Mar 26, 2012 10.30.34 AM.png", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T09:33:42.000+0000", "size": 7176, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: ActivityIndicator layout issue", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": "Ti 2.0 CI, iOS", "comment": { "comments": [ { "id": "188585", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "See attched screenshot. Tested on IOS sim 4.3, 5.0. 5.1", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T09:34:07.000+0000", "updated": "2012-03-26T09:34:07.000+0000" }, { "id": "189320", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue \r\n\r\nTested with Ti Studio build 2.0.0.201203291340\r\nTi Mobile SDK 2.0.0.v20120329191102 hash r1fbf18c4\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1\r\n\r\nCannot reproduce issue", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-30T12:51:04.000+0000", "updated": "2012-03-30T12:51:04.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }