{ "id": "79746", "key": "AC-2885", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-12-26T07:32:52.000+0000", "created": "2011-08-29T06:06:17.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:47:50.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\n\r\nThere's a nice 10px padding around the label.\r\n\r\nIf I modify the string length to 145 chars (happens at other lengths too), all of the sudden the top and bottom padding collapses. If I set a fixed width on the label it works. However, this isn't a good solution since I want the app to work in all screen dimensions.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n fullscreen: false\r\n});\r\n\r\nvar data = [];\r\n\r\nfor(var i=0;i<20;i++){\r\n var\tdescriptionRow = Ti.UI.createTableViewRow({\r\n height:100,\r\n className:'rows'\r\n });\r\n\r\n var descriptionLabel = Ti.UI.createLabel({\r\n top: 10,\r\n left: 10,\r\n right: 10,\r\n bottom: 10,\r\n // text: \"If I set a fixed width on the label, it works as intended but that's not very dynamic. My app has to work for both iPhone and iPad\"+i, // works correctly\r\n text: \"jhgieg jieg jiefjiew jfijw idj ddjwi djwid jwid jdiwdj iwdj iwdjwidj widw dwijd iw jfiejf iefj iefjie fji ejfie fjeifjeifj eifj iedfkfo ekf oekf \"+i, / padding collapses\r\n font: { fontSize: 16 }\r\n });\r\n\r\n descriptionRow.add(descriptionLabel);\r\n\r\n data.push(descriptionRow);\r\n}\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n data: data,\r\n style: Ti.UI.iPhone.TableViewStyle.GROUPED\r\n});\r\n\r\nwin.add(tableView);\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Top and bottom padding collapses for certain string lengths", "creator": { "name": "johnj", "key": "johnj", "displayName": "John Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "johnj", "key": "johnj", "displayName": "John Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* iPad simulator\r\n* Titanium Studio version?\r\n* Titanium Mobile SDK 1.7.1+ (hash and date tested, available from log)\r\n* iOS version?", "comment": { "comments": [ { "id": "164714", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "John\r\n\r\nPlease would you edit your ticket to use the markup formatting provided. Also, would you provide the build date/hash of the Titanium SDK you tested with?\r\n\r\nThen I can accept the ticket.\r\n\r\nMany thanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-31T18:35:24.000+0000", "updated": "2011-08-31T18:35:24.000+0000" }, { "id": "164914", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "John, I am closing this post. You are welcome to reopen it if you are able to do the corrections, and then I will move it to the main project.\n\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-09-02T07:59:18.000+0000", "updated": "2011-09-02T07:59:18.000+0000" }, { "id": "177190", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "John\r\n\r\nPersonally, I try to use table rows with equal heights, or else they tend to look messy. Hence, to solve this, set the row height, as in the new test case code above.\r\n\r\nI will mark this ticket resolved for the moment - please reopen it if you don't agree. However, bear in mind that I will not be able to escalate it unless it follows the [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] guide. Remember to include a link to your Q&A question, in which you asked the community about this, which is a prerequisite to raising tickets.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-26T07:32:29.000+0000", "updated": "2011-12-26T07:32:29.000+0000" }, { "id": "183564", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:12.000+0000", "updated": "2012-02-17T02:23:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }