{ "id": "99644", "key": "TIMOB-10569", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "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": "2013-03-27T08:42:54.000+0000", "created": "2012-08-23T03:05:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "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" }, "inwardIssue": { "id": "99643", "key": "TIMOB-10568", "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": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-17T10:10:40.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": "244258", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 6.0\r\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T08:42:54.000+0000", "updated": "2013-03-27T08:42:54.000+0000" }, { "id": "258953", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces\r\n\r\nTested with\r\n\r\niOS SDK: 5.1\r\niOS iPad Simulator: 5.1\r\nMac OS X Version 10.7.5\r\nTitanium SDK version 3.1.1.v20130606121419\r\nTitanium Studio, build: 3.0.1.201212181159", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-21T07:27:22.000+0000", "updated": "2013-06-21T07:28:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }