{ "id": "88781", "key": "TIMOB-8285", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-27T09:30:04.000+0000", "created": "2012-03-24T17:04:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "qe-ios031912", "qe-nfc" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "16065", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "88792", "key": "TIMOB-8294", "fields": { "summary": "Android: TextArea - There is more buffer room in TextArea 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 } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-27T09:30:04.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": "Steps to reproduce:\r\n1. Run the following on iOS:\r\n{code:title=app.js}\r\n// Create a text area on a parent that is width and height constrained \r\n// See that the text area 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 = 180;\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 = 350;\r\n\t\r\n\theight1 = 120;\r\n\theight2 = 210;\r\n\theight3 = 600;\r\n\t\r\n\ttop1 = 120;\r\n\ttop2 = 250;\r\n\ttop3 = 470;\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 ta1=Titanium.UI.createTextArea({\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 ta2=Titanium.UI.createTextArea({\r\n\tvalue: 'Sentence: This is to test 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 ta3=Titanium.UI.createTextArea({\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(ta1);\r\nview2.add(ta2);\r\nview3.add(ta3);\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\r\n{code}\r\n\r\nActual: The TextArea should expand appropriately similarly to Android. See attachments.\r\nExpected: TextArea with large amount of text should expand appropriately. ", "attachment": [ { "id": "26584", "filename": "droid.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T17:04:11.000+0000", "size": 111860, "mimeType": "image/png" }, { "id": "26583", "filename": "ios.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T17:04:11.000+0000", "size": 72471, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: TextArea - If child TextArea with lots of text is added to a parent View, the parent View does not expand properly", "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\nTitanium Studio, build: 2.0.0.201203240504\r\nxcode: 4.3\r\nDevice: iphone 4s Verizon (5.0.1)", "comment": { "comments": [ { "id": "188649", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Bug also occurs on:\r\n\r\nSDK build: 2.0.0.v20120325213306\r\nTitanium Studio, build: 2.0.0.201203262445\r\nxcode: 4.3\r\nDevice: ipad 1 (4.3.5)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T12:53:50.000+0000", "updated": "2012-03-26T12:53:50.000+0000" }, { "id": "188671", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/1842", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T14:01:40.000+0000", "updated": "2012-03-26T14:01:40.000+0000" }, { "id": "188823", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120326211803\r\nTitanium Studio, build: 2.0.0.201203262445\r\nxcode: 4.3\r\nDevice: iphone 4s Verizon (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-27T09:29:56.000+0000", "updated": "2012-03-27T09:29:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }