{ "id": "62423", "key": "TIMOB-1791", "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": "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": "2012-07-25T17:40:46.000+0000", "created": "2011-04-15T03:02:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "ipad", "textarea", "width" ], "versions": [], "issuelinks": [ { "id": "19373", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-26T22:18:05.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": "{html}

Hi guys,

\n

when setting percentage widths on text areas the correct\npercentage is not initially correct

\n

if you then change orientation it respects the correct widths,\nswitching back orientation to portrait results in the correct width\nbeing used.

\n

var row = Ti.UI.createTableViewRow({height:600});

\n

var textarea = Titanium.UI.createTextArea({

\n
\n    color:'#000',\n    left:15,\n    width:'90%',\n    font:{fontSize:16},\n});\n
\n

row.add(textarea);
\ndata.push(row);

\n

var tableView = Ti.UI.createTableView({

\n
\n    data:data,\n    style: Titanium.UI.iPhone.TableViewStyle.GROUPED\n});\n
{html}", "attachment": [], "flagged": false, "summary": "Text Area Percentage Width not respected (initially) - emulator", "creator": { "name": "ravenlife", "key": "ravenlife", "displayName": "RavenLife", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ravenlife", "key": "ravenlife", "displayName": "RavenLife", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209490", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\nCannot reproduce with SDK 2.2.0.014b86f in iPhone Sim 5.1.\r\n\r\nTest code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar row = Ti.UI.createTableViewRow({height:600, backgroundColor:'red'});\r\nvar data = [];\r\n\r\nvar textarea = Titanium.UI.createTextArea({\r\n color:'#000',\r\n left:15,\r\n width:'50%',\r\n font:{fontSize:16},\r\n});\r\nrow.add(textarea);\r\ndata.push(row);\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n data:data,\r\n style: Titanium.UI.iPhone.TableViewStyle.GROUPED\r\n});\r\nwin.add(tableView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T17:40:46.000+0000", "updated": "2012-07-25T17:40:46.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }