{ "id": "119902", "key": "TIMOB-15832", "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": null, "resolutiondate": null, "created": "2013-09-13T09:54:38.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:25.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If you have a view centered in a window about 1 out of 2 or 3 times the window is opened, you notice the view quickly shifting down about 10dp.\r\n\r\nh1. Steps to reproduce\r\n\r\n# Create a new app: {{titanium create -p ios -n testShift --id test.shift -d .}}\r\n# As {{app.js}} use:\r\n {code}\r\n function openWin() {\r\n var w = Ti.UI.createWindow({backgroundColor:'red'});\r\n var v = Ti.UI.createView({width:300,height:200,backgroundColor:'blue'});\r\n v.addEventListener('click', openWin);\r\n w.add(v);\r\n w.open();\r\n }\r\n openWin();\r\n {code}\r\n# Run the app on a device: {{titanium build -p ios -T device}}\r\n# Repeatedly click the blue view to keep opening the same window again\r\n# Pay close attention to the blue view and notice it quickly shifting about {{10dp}} down every now and then after opening a new window. \r\n\r\nh1. Notes\r\n\r\n* Explicitly center {{v}} using {{center:\\{x:'50%',y:'50%'\\}}} won't help.\r\n* Setting an absolute {{top}} on {{v}} fixes it, but that's not what we want.\r\n* This **only** happens in device testing", "attachment": [], "flagged": false, "summary": "iOS: View centered in window quickly shifts about 10dp down", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.1.3.RC (updated version)\r\nCLI 3.1.2.GA\r\niOS7GM on iPhone 4S\r\nMac OS X 10.8.4", "comment": { "comments": [ { "id": "272086", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI run your test code and try to reproduce this bug. But I can't reproduce this. My testing environment follows: -\r\n\r\niOS 7 GM, Mac OS X 10.8.4 CLI 3.1.2 GA.\r\n\r\nThanks\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-09-20T08:19:25.000+0000", "updated": "2013-09-20T08:19:25.000+0000" }, { "id": "272087", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Hello [~mrahman],\n\nDid you test it on a device? It doesn't reproduce in the simulator.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-20T08:23:42.000+0000", "updated": "2013-09-20T08:23:42.000+0000" }, { "id": "281361", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~mpmiranda] don't close this ticket please!\n\n[~mrahman] likely did not try this on a device and that's where it occurs!", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-11-26T06:48:41.000+0000", "updated": "2013-11-26T06:48:41.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }