{ "id": "130578", "key": "TIMOB-16976", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "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": "2014-06-03T20:47:42.000+0000", "created": "2014-05-16T23:02:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_animation", "qe-testadded", "supportTeam" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:22:38.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.Issue description\r\nWhen you position an element with the property \"right\" and any value assigned, then you change the orientation to, either portrait or landscape the property \"right\" value is not correctly updated.\r\n\r\nNone of these issues existed before the upgrade to Titanium SDK 3.2.3.GA, and all of them are fixed if the SDK version is reverted to 3.2.2.GA with no other code changes.\r\n\r\nh6.Steps to replicate\r\nThe sideBar View is experiencing the following issues:\r\n\r\n# Starting in portrait, press 'Expand' to expand the side bar, then change orientation to landscape. Side bar is now stuck in the middle of the window (please see screen shoots attached demonstrating misplaced sideBar at 3.2.3.GA).\r\n# Starting in portrait, press 'Expand' and then 'Collapse' to collapse the side bar, then change orientation to landscape. The side bar is now visible again.\r\n# Starting in landscape, press 'Expand' and then reorient to portrait. The side bar is now off-screen (20% is shifted to the left).\r\n\r\nh6.Runnable Sample\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tnavBarHidden : true,\r\n\tbackgroundColor : '#00f',\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.FILL\r\n});\r\n\r\nvar toggle = Ti.UI.createButton({\r\n\ttop : 100,\r\n\tleft : 10,\r\n\ttitle : 'Expand'\r\n});\r\ntoggle.addEventListener('click', toggleSideBar);\r\nwin.add(toggle);\r\n\r\nvar sideBar = Ti.UI.createView({\r\n\ttop : 0,\r\n\tright : -300,\r\n\twidth : 300,\r\n\theight : Ti.UI.FILL,\r\n\tbackgroundColor : 'pink',\r\n\texpanded : false\r\n});\r\n\r\nfunction toggleSideBar(e) {\r\n\tif (sideBar.expanded) {\r\n\t\tsideBar.animate({\r\n\t\t\tright : -300,\r\n\t\t\tduration : 400\r\n\t\t}, function() {\r\n\t\t\tsideBar.right = -300;\r\n\t\t\tsideBar.expanded = false;\r\n\t\t\ttoggle.title = 'Expand';\r\n\t\t});\r\n\t} else {\r\n\t\tsideBar.animate({\r\n\t\t\tright : 0,\r\n\t\t\tduration : 400\r\n\t\t}, function() {\r\n\t\t\tsideBar.right = 0;\r\n\t\t\tsideBar.expanded = true;\r\n\t\t\ttoggle.title = 'Collapse';\r\n\t\t});\r\n\t}\r\n}\r\n\r\nTi.Gesture.addEventListener('orientationchange', function(e) {\r\n\tTi.API.info(' #### OrientationChange sideBar.right: ' + sideBar.right);\r\n\tif (e.source.isLandscape() && sideBar.expanded) {\r\n\t\tsideBar.right = 0;\r\n\t} else if (e.source.isPortrait() && !sideBar.expanded) {\r\n\t\tsideBar.right = -300;\r\n\t}\r\n});\r\nwin.add(sideBar);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "48170", "filename": "Device-3.2.2.GA.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-16T23:02:42.000+0000", "size": 26159, "mimeType": "image/png" }, { "id": "48171", "filename": "Device-3.2.3.GA.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-16T23:02:42.000+0000", "size": 44337, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Assigning View.right value isn't getting drawn on OrientationChange event", "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": "Android API Level 14 - 19\r\nTiCLI 3.2.3\r\nTiSDK 3.2.3.GA", "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "307395", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and this is working fine on lastest master. Resolving issue as unable to reproduce.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-03T20:47:27.000+0000", "updated": "2014-06-03T20:47:27.000+0000" }, { "id": "413547", "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-17T18:22:38.000+0000", "updated": "2017-03-17T18:22:38.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }