{ "id": "126120", "key": "AC-2480", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2014-02-21T22:12:48.000+0000", "created": "2014-02-09T09:16:56.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:32.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "I have the following xml markup:\r\n\r\n{code:xml}\r\n\r\n\t\r\n\r\n{code}\r\n\r\nand the following tss code in app.tss:\r\n\r\n{code:javascript}\r\n\".buttonStyle\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tborderWidth: \"0.6\",\r\n\tborderColor: \"white\",\r\n\tborderRadius: 4,\r\n}\r\n\".buttonLbl\": {\r\n\ttop: 5, bottom: 5, left: 10, right: 10,\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\ttouchEnabled: false,\r\n\tcolor: \"white\",\r\n\tfont: {\r\n\t\tfontSize: 12\r\n\t}\r\n}\r\n{code}\r\n\r\nAs you see the width of .buttonStyle is set to Ti.UI.SIZE but I get the following result:\r\n\r\n!http://i.imgur.com/fs67jqx.png!\r\n\r\nbut if I set width inside xml like this:\r\n\r\n{code:xml}\r\n\r\n\t\r\n\r\n{code}\r\n\r\nthen I get:\r\n\r\n!http://i.imgur.com/bhuaEci.png!", "attachment": [], "flagged": false, "summary": "Setting width to Ti.UI.SIZE in tss doesn't work for views containing label only", "creator": { "name": "levani", "key": "levani", "displayName": "levani", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "levani", "key": "levani", "displayName": "levani", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX 10.9.1\r\nTitanium studio 3.2.0\r\nios7 (simulator)", "comment": { "comments": [ { "id": "293491", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have not been able to reproduce this issue with the following environment: CLI 3.2.1 + SDK 3.2.1 + Alloy 1.3.1\n\nI get the same behavior irrespective of if I specify width in xml file or tss file.\n\nindex.js\n{code}\n$.index.open();\n{code}\n\nindex.tss\n{code}\n\".buttonStyle\": {\n width: Ti.UI.SIZE,\n height: Ti.UI.SIZE,\n borderWidth: \"0.6\",\n borderColor: \"white\",\n borderRadius: 4,\n}\n\".buttonLbl\": {\n top: 5, bottom: 5, left: 10, right: 10,\n width: Ti.UI.SIZE,\n height: Ti.UI.SIZE,\n touchEnabled: false,\n color: \"white\",\n font: {\n fontSize: 12\n }\n}\n{code}\n\nindex.xml\n{code}\n\n \n \t\n \t\t\n\t\t\n \n\n{code}\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-18T05:18:54.000+0000", "updated": "2014-02-18T05:18:54.000+0000" }, { "id": "294168", "author": { "name": "levani", "key": "levani", "displayName": "levani", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I managed to solve the problem and this doesn't appear to be a bug. Please close/delete this bug report. Thanks!", "updateAuthor": { "name": "levani", "key": "levani", "displayName": "levani", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-21T19:35:03.000+0000", "updated": "2014-02-21T19:35:18.000+0000" }, { "id": "294199", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing based on reporters comment.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-21T22:12:48.000+0000", "updated": "2014-02-21T22:12:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }