{ "id": "116333", "key": "TIMOB-14336", "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": "15111", "description": "2013 Sprint 13", "name": "2013 Sprint 13", "archived": true, "released": true, "releaseDate": "2013-07-01" }, { "id": "15564", "description": "2013 Sprint 15 API", "name": "2013 Sprint 15 API", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "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-07-30T00:04:23.000+0000", "created": "2013-06-21T18:42:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_layout", "qe-3.1.2", "qe-nfc", "qe-testadded", "sdk-bb" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:35.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Note : Make sure you have orientation enabled in tiapp.xml & the device is not in portrait mode initially, it can be in faceup or landscape mode\r\n\r\nDescription:\r\n1. Create an app with the code below:\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n\ttitle:'Network Test',\r\n\tlayout:'vertical'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle:'Click for network test',\r\n\ttop: 50,\r\n\twidth:Ti.UI.SIZE,\r\n\theight:Ti.UI.SIZE\r\n\r\n});\r\n\r\nbutton.addEventListener('click',function(e){\r\n\t\r\nvar socket = Ti.Network.Socket.createUDP();\r\nsocket.addEventListener('started', function (e) {\r\nTi.API.info('Socket started');\r\n});\r\nsocket.addEventListener('data', function (e) {\r\nTi.API.info('Socket received data: '+e.stringData);\r\nTi.API.info('bytes: '+e.bytesData);\r\nTi.API.info('address: '+e.address);\r\nTi.API.info('port: '+e.port);\r\n});\r\nsocket.addEventListener('error',function (e) {\r\nTi.API.info('Socket error: '+e);\r\n});\r\nsocket.start({ port: 6100 });\r\n\r\nfor (var i = 0; i < 5; ++i) {\r\n socket.sendString({ data: \"Hello, World!\"});\r\n socket.sendBytes({ data: [73, 116, 32, 119, 111, 114, 107, 115, 33] });\r\n}\r\n\r\nvar lbl = Ti.UI.createLabel({\r\n\ttext:'Please check console for logs',\r\n\tcolor:'red',\r\n\ttextAlign:Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n\ttop:30\r\n});\r\n\r\nwin.add(lbl);\t\r\n\t\r\n});\r\n\r\n\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\nSenario 1:\r\n-----------\r\n2. Build & run for BB device/emulator\r\n3. After the app is launched make sure it is faceup mode\r\n4. Click on the 'click for network test button'\r\n5. Observe the behavior\r\n6. Close the app & launch it again\r\n7. Now put the device in portrait mode\r\n8. Click on the 'click for network test button'\r\n9. Observe the behavior\r\n\r\nActual result:\r\n-----------------\r\n1. At step 5 above : After clicking the button the layout shifts to the right & adds a label\r\n2. At step 9 above : After clicking the button it works as expected\r\n\r\nExpected Result:\r\n-----------------\r\n1. At step 5 above : After clicking the button the layout should not shift to the right\r\n\r\n\r\nSenario 2:\r\n-----------\r\n2. Build & run for BB device/emulator\r\n3. After the app is launched make sure it is in landscape mode\r\n4. Click on the 'click for network test button'\r\n5. Observe the behavior\r\n6. Close the app & launch it again\r\n7. Now put the device in portrait mode\r\n8. Click on the 'click for network test button'\r\n9. Observe the behavior\r\n\r\nActual result:\r\n----------------\r\n1. At step 5 above : After clicking the button it works as expected \r\n2. At step 9 above : After clicking the button the layout shifts to the right & adds a label\r\n\r\nExpected Result:\r\n------------------\r\n1. At step 9 above : After clicking the button the layout should not shift to the right", "attachment": [], "flagged": false, "summary": "BlackBerry : Layout messes up when a label is added using a click event after the device orientation is changed to portrait from faceup or landscape", "creator": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nTi Studio : 3.1.1.201306112235\r\nTi BB SDK : 3.2.0.v20130620163241\r\nMac OSX : 10.8.4\r\nAlloy : 1.1.3\r\nCLI - 3.1.1\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88", "comment": { "comments": [ { "id": "259417", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & now adding the label from an event listener does not shift the layout to the right.\r\n\r\nEnvironment:\r\nTi Studio : 3.1.1.201306112235\r\nTi BB SDK : 3.2.0.v20130625113003\r\nMac OSX : 10.8.4\r\nAlloy : 1.1.3\r\nCLI - 3.1.1\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-25T20:26:57.000+0000", "updated": "2013-06-25T20:26:57.000+0000" }, { "id": "262640", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nVerified with Environment:\r\nStudio: 3.1.2.201307191853\r\nTitanium SDK:3.1.2.v20130718094558\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.3.2\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:Blackberry-Z10(v 10.0.10.261)\r\nBlackberry SDK: 10.1.0.1020\r\n\r\nLabel layout does not messes up on orientation change.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-22T10:28:18.000+0000", "updated": "2013-07-22T10:28:18.000+0000" }, { "id": "262646", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening. \r\nVerified with Environment:\r\n\r\nStudio: 3.1.2.201307191853\r\nTitanium SDK:3.1.2.v20130718094558\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.3.2\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:Blackberry-Z10(v 10.0.10.261)\r\nBlackberry SDK: 10.1.0.1020\r\n\r\nApp works fine in scenario 2 as described in the bug.\r\nBut still label layout shifts to right on being added when button is clicked when device in face up mode.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-22T11:15:07.000+0000", "updated": "2013-07-22T11:15:07.000+0000" }, { "id": "263840", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & now adding the label from an event listener does not shift the layout to the right.\r\n\r\nEnvironment:\r\nTi Studio : 3.1.1.201306112235\r\nTi BB SDK : 3.1.2.v20130726192706\r\nMac OSX : 10.8.4\r\nAlloy : 1.20-alpha\r\nCLI - 3.1.1\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-30T00:44:48.000+0000", "updated": "2013-07-30T00:44:48.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }