{ "id": "90521", "key": "TIMOB-8782", "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-04-24T11:31:51.000+0000", "created": "2012-04-18T14:05:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "Parity", "SupportTeam", "api" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-13T18:10:42.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": "*Code*\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar textArea = Ti.UI.createTextArea({\r\n\tvalue : 'I am a textarea',\r\n height : 40,\r\n width : 300,\r\n top : 60,\r\n borderWidth : 2,\r\n borderColor : '#bbb',\r\n borderRadius : 5\r\n});\r\n\r\nwin.addEventListener('click', function(e)\r\n{\r\n\ttextArea.blur();\r\n});\r\n\r\nwin.add(textArea);\r\nwin.open();\r\n{code}\r\n\r\n*Expected behavior*\r\nTi.UI.TextArea should render, without being 'squished'.\r\n\r\n*Actual behavior*\r\nAs you can see, it's actually squished on a HTC Sensation 4G.\r\n\r\n*Notes*\r\n-Was able to reproduce this issue on a HTC Sensation 4G. I also tried it with an ASUS Eee Pad, but I wasn't able to reproduce the issue, it renders fine.\r\n-Works fine on the iOS simulator.\r\n-Screenshot of issue: http://www.abload.de/img/keyboardissuewqjo0.png\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.TextArea doesn't render properly on some devices", "creator": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "environment": "Ti SDK 2.0GA2\r\nV8\r\nHTC Sensation 4G", "comment": { "comments": [ { "id": "192332", "author": { "name": "corthlieb", "key": "corthlieb", "displayName": "Carl Orthlieb", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This might be a code error: should height be Ti.UI.SIZE? The HTC Sensation 4G is 960 x 540 and the ASUS Eee Pad is 1280 x 800.\r\n\r\nThe text looks CLIPPED not SQUISHED.", "updateAuthor": { "name": "corthlieb", "key": "corthlieb", "displayName": "Carl Orthlieb", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T18:49:44.000+0000", "updated": "2012-04-23T18:49:44.000+0000" }, { "id": "192381", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do we have screen shots of the screens? Also, has anyone tested this against another HTC phone that may be using HTC Sense? If HTC Sense changes the default font size, then that could explain things.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-24T10:21:08.000+0000", "updated": "2012-04-24T10:21:08.000+0000" }, { "id": "192382", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "The problem in the client's app is, that it sometimes randomly shows the TextArea like in the screenshot above. However, as soon as you type out a character, it automatically expands and returns to normal, meaning it shows the clipped/squished TextArea like it's supposed to, as soon as the user types something in.\r\n\r\nThe sample code above is the closes I could do, in order to reproduce this issue. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-04-24T10:25:56.000+0000", "updated": "2012-04-24T10:25:56.000+0000" }, { "id": "192407", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "I worked with Hieu on this problem and we managed to figure out that it actually was a problem with the app code. It was being clipped because of the parent view trying to resize its content incorrectly. This ticket can be closed and marked as invalid.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-04-24T11:29:15.000+0000", "updated": "2012-04-24T11:29:15.000+0000" }, { "id": "192409", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-24T11:31:38.000+0000", "updated": "2012-04-24T11:31:38.000+0000" }, { "id": "411446", "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-13T18:10:42.000+0000", "updated": "2017-03-13T18:10:42.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }