{ "id": "91265", "key": "TIMOB-9069", "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": "2013-06-02T15:22:51.000+0000", "created": "2012-05-03T07:34:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "exalture" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-21T21:31:06.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\r\n\r\nTo see the issue, run this example:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#000', modal: true, navBarHidden: true });\r\nvar view = Ti.UI.createScrollView({ backgroundColor: '#f00' });\r\n\r\nvar textField = Ti.UI.createTextField({ width: 200, height: 75 });\r\n\r\nview.add(textField);\r\n\r\nvar toolbar = Ti.UI.createView({\r\n backgroundColor: '#00f',\r\n height: '15%',\r\n //height: 100, //works with this value\r\n bottom: 0,\r\n layout: 'horizontal'\r\n});\r\n\r\nvar saveButton = Ti.UI.createButton({\r\n backgroundColor: '#444',\r\n left: 20,\r\n width: 150,\r\n height: 60,\r\n title: 'Save',\r\n color: '#ccc'\r\n});\r\n\r\ntoolbar.add(saveButton);\r\nview.add(toolbar);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nText field should automatically receive focus and button should be seen on the screen. The problem is that \"toolbar\" view did not scroll up and it is not visible on the screen. If keyboard is lowered, \"toolbar\" view is visible on the bottom of the screen. If text field is again focused (by clicking on it), same issue can be seen.\r\n\r\nh2. Expected behavior\r\n\r\n\"toolbar\" should be scrolled up. This issue does not exist if \"height\" property is defined as numeric value.", "attachment": [ { "id": "35843", "filename": "After down keyboard.png", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T13:32:43.000+0000", "size": 11955, "mimeType": "image/png" }, { "id": "35844", "filename": "height_numeric.png", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T13:32:43.000+0000", "size": 41488, "mimeType": "image/png" }, { "id": "35845", "filename": "height_percentage.png", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T13:32:43.000+0000", "size": 42449, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: View inside ScrollView doesn't scroll up if its height is defined as percentage", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "* Titanium SDK version: 2.1.0 (05/02/12 17:33 85e7af3)\r\n* v8\r\n* Android 3.1\r\n* Thinkpad Tablet", "comment": { "comments": [ { "id": "240351", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I did not get the actual problem. Can you attach screen shots of actual problem? \r\n\r\nI tested on\r\n\r\n Titanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\n\r\nwhen focus the textfeild, \"toolbar\" view becomes visible top of soft keyboard.If keyboard is lowered, \"toolbar\" view is visible on the bottom of the screen. If \"height\" property defined as percentage, \"toolbar\" view's size get reduced ,but when it defined as numeric value problem won't exist.Here is my observation (Check screen shot ).\r\n\r\n\r\nattachments\r\n1.after down keyboard\r\n2.\"height\" defined as numeric\r\n3.\"height\" defined as percentage\r\n ", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T13:09:05.000+0000", "updated": "2013-03-01T13:42:11.000+0000" }, { "id": "240458", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Seems like original problem is fixed. Thanks :)", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-03-02T12:22:33.000+0000", "updated": "2013-03-02T12:22:33.000+0000" }, { "id": "255409", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with 3.2.0, toolbar is scrolled to view when soft keyboard is shown.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-02T15:22:51.000+0000", "updated": "2013-06-02T15:22:51.000+0000" }, { "id": "414457", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:31:06.000+0000", "updated": "2017-03-21T21:31:06.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }