{ "id": "102901", "key": "TIMOB-11304", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14166", "description": "2012 Sprint 21 Core", "name": "2012 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-21T05:15:51.000+0000", "created": "2012-10-08T23:31:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_label", "qe-and100112", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14166", "description": "2012 Sprint 21 Core", "name": "2012 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "issuelinks": [ { "id": "21829", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "82214", "key": "TIMOB-5954", "fields": { "summary": "iOS: click event fired more than once", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2012-12-21T05:15:51.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Description:\r\nA label \"Click me\" is not centered inside the yellow view.\r\n\r\nThis is a regression, does not occur on 2.1.3.\r\n\r\nSteps:\r\n1. Run the following code:\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n tabBarHidden:true\r\n}); \r\n \r\nvar vwTest = Ti.UI.createView({\r\n backgroundColor:'yellow',\r\n height:250,\r\n width:250\r\n});\r\nwin1.add(vwTest);\r\n \r\nvwTest.addEventListener('click', function(){\r\n Ti.API.info('You should only see this once per click... but');\r\n Ti.API.info('Click Event Firing');\r\n});\r\n \r\nvar label1 = Titanium.UI.createLabel({\r\n text:'Click Me',\r\n color:'#000',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n height:250,\r\n width:250\r\n});\r\n \r\nvwTest.add(label1);\r\n \r\nwin1.open();\r\n{code}\r\n\r\nExpected result:\r\nThe label \"click me\" should be located in the center of yellow view\r\n\r\nActual result:\r\nThe label is not centered inside the yellow view", "attachment": [ { "id": "32421", "filename": "2.1.3.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-08T23:31:38.000+0000", "size": 19002, "mimeType": "image/png" }, { "id": "32422", "filename": "3.0.0.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-08T23:31:38.000+0000", "size": 18989, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Label - A label \"Click me\" is not centered inside the yellow view", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK, build: 3.0.0.v20121008121846\r\nDevice: Samsung Galaxy III (4.0.4)", "comment": { "comments": [ { "id": "223164", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Master PR:\n\nhttps://github.com/appcelerator/titanium_mobile/pull/3179\n\n3_0_X PR:\n\nhttps://github.com/appcelerator/titanium_mobile/pull/3180", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-11T21:10:18.000+0000", "updated": "2012-10-11T21:10:18.000+0000" }, { "id": "224020", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified and tested on:\r\nTitanium Studio, build: 3.0.0.201210151149\r\nTitanium SDK, builds: 3.0.0.v20121017100120; 3.1.0.v20121017102121\r\nDevice: Nexus 7 (4.1.1)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T18:40:21.000+0000", "updated": "2012-10-17T18:40:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }