{ "id": "92375", "key": "TIMOB-9271", "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-06-21T16:29:01.000+0000", "created": "2012-05-24T19:30:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "27227", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "111731", "key": "TIMOB-13223", "fields": { "summary": "Android: Notifications appear too small when anyDensity=false", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T21:03:33.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": "h6.Problem\r\nScrollView automatically scrolls when anyDensity=\"false\"\r\n\r\nh6.Expected behavior\r\nScrollView do not scrolls\r\n\r\nh6.Tested on\r\nDevice: LG Ally 2.2\r\nAndroid 2.2 WVGA emulator\r\n\r\nh5.tiapp.xml (having anyDensity=\"false\")\r\n{code}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nh6.Steps to reproduce\r\n1. Run app.js below\r\n2. Notice the screen is cut off at the very beginning \r\n\r\nh6.Repro sequence\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\t//windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN\r\n\tbackgroundColor: 'gray'\r\n});\r\n \r\nwin.orientationModes = [\r\n Titanium.UI.PORTRAIT,\r\n Titanium.UI.UPSIDE_PORTRAIT,\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.LANDSCAPE_RIGHT\r\n]; \r\n \r\nvar scrolly = Titanium.UI.createScrollView({\r\n contentHeight:'auto'\r\n});\r\nwin.add(scrolly);\r\n\r\nvar view = Ti.UI.createView({\r\n\ttop: 15,\r\n\theight: 100,\r\n\twidth: '90%',\r\n\tbackgroundColor: 'red'\r\n});\r\nscrolly.add(view);\r\n\r\n\r\nvar data = [];\r\nfor(i=0; i<5; i++){\r\n\tdata[i] = Ti.UI.createTableViewRow({\r\n\t\ttitle: 'Row: '+ i\r\n\t});\r\n}\r\nvar table = Ti.UI.createTableView({\r\n\tdata: data,\r\n\ttop: 145,\r\n\theight: '400',\r\n\twidth: '90%',\r\n\tbackgroundColor: 'blue'\r\n\t\r\n});\r\nscrolly.add(table);\r\n\r\nvar view = Ti.UI.createView({\r\n\ttop: 700,\r\n\theight: 100,\r\n\twidth: '90%',\r\n\tbackgroundColor: 'yellow'\r\n});\r\nscrolly.add(view);\r\n \r\nwin.open();\r\n{code}\r\n\r\nh4.Stack trace Actual device OS 2.2\r\n{code}\r\n05-24 19:46:04.872: I/ActivityManager(1347): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.appc.test/._1testyActivity }\r\n05-24 19:46:04.902: I/ActivityManager(1347): Start proc com.appc.test for activity com.appc.test/._1testyActivity: pid=27017 uid=10071 gids={1015, 1006, 3003}\r\n05-24 19:46:05.022: I/ActivityManager(1347): Process com.vzw.vvm.androidclient (pid 26660) has died.\r\n05-24 19:46:05.042: I/ActivityManager(1347): Process com.svox.pico (pid 26200) has died.\r\n05-24 19:46:05.172: I/ActivityManager(1347): Process android.process.media (pid 26673) has died.\r\n05-24 19:46:05.342: I/TiApplication(27017): (main) [0,0] checkpoint, app created.\r\n05-24 19:46:05.562: I/TiApplication(27017): (main) [232,232] Titanium 2.0.1 (2012/04/12 16:36 999c68a)\r\n05-24 19:46:05.902: I/TiApplication(27017): (main) [340,572] Titanium Javascript runtime: v8\r\n05-24 19:46:05.952: I/TiRootActivity(27017): (main) [0,0] checkpoint, on root activity create, savedInstanceState: Bundle[mParcelledData.dataSize=1148]\r\n05-24 19:46:08.292: E/TiApplication(27017): (KrollRuntimeThread) [2341,2341] APP PROXY: ti.modules.titanium.app.AppModule@44a2a210\r\n05-24 19:46:08.632: W/V8Object(27017): Runtime disposed, cannot set property 'userAgent'\r\n05-24 19:46:08.892: W/TiUIScrollView(27017): (main) [600,2941] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction.\r\n05-24 19:46:08.922: I/ActivityManager(1347): Process com.google.android.apps.uploader (pid 26681) has died.\r\n05-24 19:46:09.152: I/TiRootActivity(27017): (main) [0,0] checkpoint, on root activity resume. activity = com.appc.test._1testyActivity@44a0eef0\r\n05-24 19:46:09.922: I/ActivityManager(1347): Displayed activity com.appc.test/._1testyActivity: 5039 ms (total 5039 ms)\r\n05-24 19:46:10.482: I/ActivityManager(1347): Process com.facebook.katana (pid 26030) has died.\r\n{code}", "attachment": [ { "id": "27941", "filename": "ActualDevice_Scrolls.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-24T19:30:49.000+0000", "size": 1115852, "mimeType": "image/jpeg" }, { "id": "27940", "filename": "WVGA_Emulator.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-24T19:30:49.000+0000", "size": 76720, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: ScrollView automatically scrolls when anyDensity=\"false\"", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 2.0.1.GA2\r\nAndroid OS 2.2 & 2.3", "comment": { "comments": [ { "id": "199669", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In Android, a view goes down the view chain (parent->child) to request focus. First view which is \"focusable\" wins and becomes focused. In the test case attached above, the table view gains the focus so the scrollview automatically scrolls in order to show the table view. \r\nThis is a native Android behavior. We can see this happens with and without anyDensity='false' using the test case below. \r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n //windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN\r\n backgroundColor: 'gray'\r\n});\r\n \r\nwin.orientationModes = [\r\n Titanium.UI.PORTRAIT,\r\n Titanium.UI.UPSIDE_PORTRAIT,\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.LANDSCAPE_RIGHT\r\n]; \r\n \r\nvar offset = 300;\r\n \r\nvar scrolly = Titanium.UI.createScrollView({\r\n contentHeight:'auto'\r\n});\r\nwin.add(scrolly);\r\n \r\nvar view = Ti.UI.createView({\r\n top: 15,\r\n height: 100 + offset,\r\n width: '90%',\r\n backgroundColor: 'red'\r\n});\r\nscrolly.add(view);\r\n \r\n \r\nvar data = [];\r\nfor(i=0; i<5; i++){\r\n data[i] = Ti.UI.createTableViewRow({\r\n title: 'Row: '+ i\r\n });\r\n}\r\nvar table = Ti.UI.createTableView({\r\n data: data,\r\n top: 145 + offset,\r\n height: '500',\r\n width: '90%',\r\n backgroundColor: 'blue'\r\n \r\n});\r\nscrolly.add(table);\r\n \r\nvar view = Ti.UI.createView({\r\n top: 800 + offset,\r\n height: 100,\r\n width: '90%',\r\n backgroundColor: 'yellow'\r\n});\r\nscrolly.add(view);\r\n \r\nwin.open();\r\n{code}\r\n\r\n\r\nIf we change the table view to a plain view, scrollview won't automatically scroll. BTW, mixing scrollview and tableview is strongly discouraged because scroll events for the two objects can be mixed up and wrongly handled.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-21T16:24:56.000+0000", "updated": "2012-06-21T16:24:56.000+0000" }, { "id": "414952", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:03:33.000+0000", "updated": "2017-03-22T21:03:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }