{ "id": "88792", "key": "TIMOB-8294", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-03-28T15:20:52.000+0000", "created": "2012-03-25T15:10:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-and031912", "qe-nfc" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "16064", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "88779", "key": "TIMOB-8283", "fields": { "summary": "Android: TextField - There is more buffer room in TextField when height and width are not set", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "16065", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "88781", "key": "TIMOB-8285", "fields": { "summary": "iOS: TextArea - If child TextArea with lots of text is added to a parent View, the parent View does not expand 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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "16163", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "89024", "key": "TIMOB-8347", "fields": { "summary": "TiAPI: implement cross platform padding and margin control on text fields and areas", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:23:57.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": "Steps to reproduce:\r\n1. Run the following code on Android:\r\n{code:title=app.js}\r\n// Create a text field on a parent that is width and height constrained \r\n// See that the text field sizes itself accordingly \r\n\r\nvar win = Ti.UI.createWindow();\r\nwin.backgroundColor = 'white';\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'Pass if text areas (yellow) width to handle the text in them, but not outside the view (green)',\r\n\ttop: 20,\r\n\tleft: 10,\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE,\r\n\tcolor: 'black'\r\n});\r\n\r\n// ios widths\r\nvar width1 = 60;\r\nvar width2 = 120;\r\n\r\nvar height1 = 30;\r\nvar height2 = 50;\r\nvar height3 = 70;\r\n\r\nvar top1 = 80;\r\nvar top2 = 140;\r\nvar top3 = 220;\r\n\r\nif(Ti.Platform.osname !== 'iphone' && Ti.Platform.osname !== 'ipad'){\r\n\twidth1 = 180;\r\n\twidth2 = 230;\r\n\t\r\n\theight1 = 120;\r\n\theight2 = 130;\r\n\theight3 = 200;\r\n\t\r\n\ttop1 = 120;\r\n\ttop2 = 250;\r\n\ttop3 = 390;\r\n}\r\n\r\nvar view1 = Ti.UI.createView({\r\n\theight: height1,\r\n\twidth: width1,\r\n\ttop: top1,\r\n\tbackgroundColor: 'green'\r\n});\r\n\r\nvar tf1=Titanium.UI.createTextField({\r\n\tvalue: 'A',\r\n\tbackgroundColor: 'yellow'\r\n});\r\n\r\nvar view2 = Ti.UI.createView({\r\n\theight: height2,\r\n\twidth: width2,\r\n\ttop: top2,\r\n\tbackgroundColor: 'green'\r\n});\r\n\r\nvar tf2=Titanium.UI.createTextField({\r\n\tvalue: 'Sentence: This is to test the text area to display a single sentence',\r\n\tbackgroundColor: 'yellow'\r\n});\r\n\r\nvar view3 = Ti.UI.createView({\r\n\theight: height3,\r\n\twidth: Ti.UI.FILL,\r\n\ttop: top3,\r\n\tbackgroundColor: 'green'\r\n});\r\n\r\nvar tf3=Titanium.UI.createTextField({\r\n\tvalue: 'Paragraph: This is to test the text area to display a paragraph. A paragraph (from the Greek paragraphos, \"to write beside\" or \"written beside\") is a self-contained unit of a discourse in writing dealing with a particular point or idea. Paragraphs consist of one or more sentences. The start of a paragraph is indicated by beginning on a new line. Sometimes the first line is indented. At various times, the beginning of a paragraph has been indicated by the pilcrow',\r\n\tbackgroundColor: 'yellow'\r\n});\r\n\r\n\r\nview1.add(tf1);\r\nview2.add(tf2);\r\nview3.add(tf3);\r\n\r\nwin.add(view1);\r\nwin.add(view2);\r\nwin.add(view3);\r\nwin.add(label);\r\n\r\nwin.open();\r\n{code}\r\n\r\nActual: There seems to be a lot of buffer room around the text. See attachment.\r\nExpected: The buffer room should be smaller.", "attachment": [ { "id": "26593", "filename": "droid.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-25T15:10:06.000+0000", "size": 111860, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TextArea - There is more buffer room in TextArea when height and width are not set", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 2.0.0.v20120323221800\r\nRuntime: v8, rhino\r\nTitanium Studio, build: 2.0.0.201203240504\r\nDevice: Galaxy Nexus (4.0.2)", "comment": { "comments": [ { "id": "189016", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-03-28T10:36:36.000+0000", "updated": "2012-03-28T10:36:36.000+0000" }, { "id": "410999", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:23:57.000+0000", "updated": "2017-03-09T23:23:57.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }