{ "id": "84192", "key": "AC-3041", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-12-22T06:39:57.000+0000", "created": "2011-12-21T23:39:16.000+0000", "labels": [ "barimage", "disappears", "ios5", "rightnavbutton", "titlecontrol", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:48:04.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "In our app we use windows (Titanium.UI.Window) which are themed with a barImage and have a titleControl (Titanium.UI.Label) in order to style the title. The windows are organized via tabgroups where per tab window additional windows are opened with animation.\r\n\r\nDuring several cycles of open -> close -> open -> close suddenly the rightNavButton disappears and appears again if the orientation of the device is changed (portrait -> landscape -> portrait).\r\n\r\nThis only happens on a real device not in simulator!\r\n\r\nFurther inverstigations revealed that this is due to the workarraound in line #321 of TiUIWindowProxy.m for iOS 5:\r\n[https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUIWindowProxy.m#L321]\r\nwhich has been created before GA of the iOS 5 SDK.\r\n\r\nIf this workarround is replaced by the correct native implementation (setBackgroundImage) the bug is gone.\r\n\r\nYou'll find attached a context diff with a proposed implementation which solved the bug.\r\n\r\nPlease consider applying the attached patch to master and branch/1.8.0.1.\r\n\r\nRegards.", "attachment": [ { "id": "24823", "filename": "TiUIWindowProxy.m-barimage-ios5.diff", "author": { "name": "level420", "key": "level420", "displayName": "Dietrich Streifert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T23:39:16.000+0000", "size": 2214, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS Titanium.UI.Window with titleControl does not reliably display rightNavButton on iPhone 4 device (not in simulator!)", "creator": { "name": "level420", "key": "level420", "displayName": "Dietrich Streifert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "level420", "key": "level420", "displayName": "Dietrich Streifert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 1.7.5\r\nTitanium SDK 1.8.0.1 (12/18/11 00:16 22868a1)\r\niPhone 4, iOS 5.0.1\r\nTitanium Studio, build: 1.0.8.201112191627", "comment": { "comments": [ { "id": "177002", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Dietrich\r\n\r\nThanks for raising this.\r\n\r\nIn order for me to escalate this ticket to the core team, it must follow the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] and hence include a test case that runs without modification, as per the [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase].\r\n\r\nI will close this for now. Please reopen the ticket once it is complete, and I will move it to the main project.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-22T06:39:47.000+0000", "updated": "2011-12-22T06:39:47.000+0000" }, { "id": "183567", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:13.000+0000", "updated": "2012-02-17T02:23:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }