{ "id": "99643", "key": "TIMOB-10568", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-08-23T21:01:03.000+0000", "created": "2012-08-23T03:04:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-ios082012" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "20164", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "99644", "key": "TIMOB-10569", "fields": { "summary": "iOS: Label - Vertical alignment on label is not set properly", "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": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:30:52.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": "Vertical alignment on label is not set properly.\r\n\r\nThis is not a Regression.It happens as far as 2.0.1.\r\n\r\nSteps To reproduce:\r\n\r\n1. install and launch the app on to the device.\r\n2. Click on Top or Bottom button\r\n\r\nExpected Result:\r\n\r\nAfter Step 2: the text on the label should be vertically aligned as per the button click.\r\n\r\nActual Result:\r\n\r\nAfter Step 2: The text doesn't get vertically aligned\r\n\r\napp.js\r\n{code}\r\n\tvar win = Ti.UI.createWindow();\r\n \r\n\t\tvar theFont = {fontSize: 11, font: 'Helevetica' };\r\n\t\tvar container = Ti.UI.createView({\r\n\t\t    layout:'vertical'\r\n\t\t}) \r\n\t\tvar controls1 = Ti.UI.createView({\r\n\t\t    layout:'horizontal',\r\n\t\t    height:Ti.UI.SIZE,\r\n\t\t    top:10,\r\n\t\t    borderColor:'#ccc',\r\n\t\t    borderWidth:1\r\n\t\t}) \r\n\t\t \r\n\t\tvar title1 = Ti.UI.createLabel({\r\n\t\t    font :theFont,\r\n\t\tcolor: 'white',\r\n\t\t    text:'V-ALIGN'\r\n\t\t})\r\n\t\tvar c1b1 = Ti.UI.createButton({\r\n\t\t    left:10,\r\n\t\t    font :theFont,\r\n\t\t    title:'TOP'\r\n\t\t})\r\n\t\tvar c1b2 = Ti.UI.createButton({\r\n\t\t    left:10,\r\n\t\t    font :theFont,\r\n\t\t    title:'BOTTOM'\r\n\t\t})\r\n\t\tvar c1b3 = Ti.UI.createButton({\r\n\t\t    left:10,\r\n\t\t    font :theFont,\r\n\t\t    title:'CENTER'\r\n\t\t})\r\n\t\tcontrols1.add(title1);\r\n\t\tcontrols1.add(c1b1);\r\n\t\tcontrols1.add(c1b2);\r\n\t\tcontrols1.add(c1b3);\r\n\t\tcontainer.add(controls1)\r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\tvar testLabel = Ti.UI.createLabel({\r\n\t\t    backgroundColor: 'white',\r\n\t\theight : 250,\r\n\t\twidth : 250,\r\n\t\t    color: 'black',\r\n\t\t    //text:'I am the test label. Switch my properties around and see me change. Vertical Alignment should work well with change in size and text alignment.',\r\n\t\t    text:'A long label with\\na few line breaks\\nand unicode (UTF8)\\nsymbols such as\\na white chess piece \\u2655\\nand the euro symbol \\u20ac\\nlooks like this!\\n',\r\n\t\t    borderColor:'red',\r\n\t\t    borderWidth:1,\r\n\t\t    top:10\r\n\t\t})\r\n\t\tcontainer.add(testLabel);\r\n\t\t \r\n\t\twin.add(container);\r\n\t\t \r\n\t\tc1b1.addEventListener('click',function(e){testLabel.verticalAlign = Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP});\r\n\t\tc1b2.addEventListener('click',function(e){testLabel.verticalAlign = Ti.UI.TEXT_VERTICAL_ALIGNMENT_BOTTOM});\r\n\t\tc1b3.addEventListener('click',function(e){testLabel.verticalAlign = Ti.UI.TEXT_VERTICAL_ALIGNMENT_CENTER});\r\n\t\t\r\n\t\t \r\n win.open();\r\n\r\n \r\n{code}", "attachment": [], "flagged": false, "summary": "iOS : Label - Vertical alignment on label is not set properly", "creator": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Studio: 2.1.2.201208201549\r\nTitanium SDK: 2.1.2.v20120821160113\r\niOS Device: iPad 2 (5.1)\r\nOS: Mac OSX 10.8", "comment": { "comments": [ { "id": "410596", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:30:52.000+0000", "updated": "2017-03-09T21:30:52.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }