{ "id": "121643", "key": "TIMOB-15584", "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": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15708", "description": "2013 Sprint 23 API", "name": "2013 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "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-11-04T20:52:27.000+0000", "created": "2013-10-25T21:16:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "kitchensink", "qe-testadded", "regression" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "32911", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "103854", "key": "TIMOB-11567", "fields": { "summary": "Android : Setting width of picker does not work as expected when useSpinner property is set to true", "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": "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": "2014-04-22T10:12:21.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": "This is a regression in master (3.2.0). 3.1.3.GA works fine.\r\nTo reproduce:\r\n1. KS->Controls->Picker->Android \"useSpinner\"-text. \r\ni) Expected behavior: show 3 spinners. Actual behavior: only show 1 spinner. See the attached screenshot for the latest master and 3.1.3.GA.\r\nii) Click the button \"Add 'Manny'\" and then scroll the spinner. The app crashes. The log is \r\n{code}\r\nW/dalvikvm(16260): threadid=1: thread exiting with uncaught exception (group=0x40a3d1f8)\r\nE/TiApplication(16260): (main) [32538,34141] Sending event: exception on thread: main msg:java.lang.IllegalArgumentException: Layout: -20 < 0; Titanium 3.2.0,2013/10/25 13:41,9b2cd09\r\nE/TiApplication(16260): java.lang.IllegalArgumentException: Layout: -20 < 0\r\nE/TiApplication(16260): \tat android.text.Layout.(Layout.java:140)\r\nE/TiApplication(16260): \tat android.text.StaticLayout.(StaticLayout.java:104)\r\nE/TiApplication(16260): \tat android.text.StaticLayout.(StaticLayout.java:90)\r\nE/TiApplication(16260): \tat kankan.wheel.widget.WheelView.createLayouts(WheelView.java:504)\r\nE/TiApplication(16260): \tat kankan.wheel.widget.WheelView.onDraw(WheelView.java:564)\r\nE/TiApplication(16260): \tat android.view.View.draw(View.java:10978)\r\nE/TiApplication(16260): \tat android.view.View.getDisplayList(View.java:10417)\r\nE/TiApplication(16260): \tat android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)\r\nE/TiApplication(16260): \tat android.view.View.getDisplayList(View.java:10380)\r\nE/TiApplication(16260): \tat android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)\r\nE/TiApplication(16260): \tat android.view.View.getDisplayList(View.java:10380)\r\nE/TiApplication(16260): \tat android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)\r\nE/TiApplication(16260): \tat android.view.View.getDisplayList(View.java:10380)\r\nE/TiApplication(16260): \tat android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)\r\nE/TiApplication(16260): \tat android.view.View.getDisplayList(View.java:10380)\r\nE/TiApplication(16260): \tat android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)\r\nE/TiApplication(16260): \tat android.view.View.getDisplayList(View.java:10380)\r\nE/TiApplication(16260): \tat android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)\r\nE/TiApplication(16260): \tat android.view.View.getDisplayList(View.java:10380)\r\nE/TiApplication(16260): \tat android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:842)\r\nE/TiApplication(16260): \tat android.view.ViewRootImpl.draw(ViewRootImpl.java:1910)\r\nE/TiApplication(16260): \tat android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1634)\r\nE/TiApplication(16260): \tat android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)\r\nE/TiApplication(16260): \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\nE/TiApplication(16260): \tat android.os.Looper.loop(Looper.java:137)\r\nE/TiApplication(16260): \tat android.app.ActivityThread.main(ActivityThread.java:4424)\r\nE/TiApplication(16260): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\nE/TiApplication(16260): \tat java.lang.reflect.Method.invoke(Method.java:511)\r\nE/TiApplication(16260): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)\r\nE/TiApplication(16260): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)\r\nE/TiApplication(16260): \tat dalvik.system.NativeStart.main(Native Method)\r\n{code}\r\n2. KS->Controls->Picker->Android \"useSpinner\"-text2. Some spinners do not show. See the attached screenshot for the latest master and 3.1.3.GA.", "attachment": [ { "id": "43467", "filename": "3.1.3_useSpinner_text.png", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-25T21:17:11.000+0000", "size": 487120, "mimeType": "image/png" }, { "id": "43469", "filename": "3.1.3_useSpinner_text2.png", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-25T21:17:11.000+0000", "size": 575821, "mimeType": "image/png" }, { "id": "43466", "filename": "master_useSpinner_text.png", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-25T21:17:11.000+0000", "size": 447030, "mimeType": "image/png" }, { "id": "43468", "filename": "master_useSpinner_text2.png", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-25T21:17:11.000+0000", "size": 492762, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Spinner picker does not layout correctly", "creator": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "277303", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The regression is caused by [PR#4300|https://github.com/appcelerator/titanium_mobile/pull/4300/].\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/4883\r\nFor FR, please also test TIMOB-11567.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-30T00:24:47.000+0000", "updated": "2013-10-30T00:26:39.000+0000" }, { "id": "278512", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201311060354\nTitanium SDK, build: 3.2.0.v20131106120148\nCLI: 3.2.0\nAlloy: 1.3.0\n\nAndroid Emulator: 2.3.3, 4.0.3, 4.4\nAndroid Device: Sony Ericsson Xperia Arc S, 4.0.4\n\nAll three spinners appear on screen on device and simulators.\nAdding \"Manny\" to the screen and scrolling the spinner does not crash app either.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-06T21:49:19.000+0000", "updated": "2013-11-06T21:49:19.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }