{ "id": "115442", "key": "TIMOB-14100", "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": "15498", "description": "2013 Sprint 12 API", "name": "2013 Sprint 12 API", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-06T01:27:15.000+0000", "created": "2013-06-04T13:58:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "qe-3.1.1", "qe-closed-3.1.1", "qe-testadded", "regression" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem description\r\nWhen using windowSoftInputMode, the dimensions returned in the postlayout event are not correct.\r\n\r\nh2. Steps to reproduce\r\nUse the following code to reproduce the issue. Removing windowSoftInputMode will return the right height for the window.\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle:'Tab 1',\r\n\tbackgroundColor:'#fff',\r\n\twindowSoftInputMode: Ti.UI.Android.SOFT_INPUT_ADJUST_PAN\r\n});\r\n\r\nwin1.addEventListener('postlayout', function(e) { \r\n\tTi.API.info('rect.height: '+e.source.rect.height);\r\n\talert('rect.height: '+e.source.rect.height);\r\n});\r\n\r\nwin1.open();\r\n{code}\r\n\r\nh2. Notes\r\nWorks with 3.0.2", "attachment": [], "flagged": false, "summary": "Android: element's \"rect\" property invalid when windowSoftInputMode is used", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android 4.2\r\nSDK 3.1.0.GA", "comment": { "comments": [ { "id": "256363", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/4358", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-06T01:26:54.000+0000", "updated": "2013-06-06T01:26:54.000+0000" }, { "id": "256382", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.1.X PR : https://github.com/appcelerator/titanium_mobile/pull/4359", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-06T07:11:37.000+0000", "updated": "2013-06-06T07:11:37.000+0000" }, { "id": "256485", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed with TiSDK 3.1.1.v20130606121419 on Android Galaxy Nexus 4.2.2\r\n\r\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-06T20:00:59.000+0000", "updated": "2013-06-06T20:00:59.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }