{ "id": "83973", "key": "TIMOB-6721", "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": "12090", "description": "", "name": "Sprint 2011-50", "archived": true, "released": true, "releaseDate": "2011-12-19" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-23T16:19:21.000+0000", "created": "2011-12-16T13:23:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14272", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "79240", "key": "TIMOB-5006", "fields": { "summary": "iOS: iAd rotation bug", "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": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-02T12:26:00.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "It appears that our code for handling iAd size settings is incorrect. We can run the following test to confirm/deny:\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' });\r\nwin1.orientationModes = [\r\n\tTitanium.UI.LANDSCAPE_RIGHT,\r\n\tTitanium.UI.LANDSCAPE_LEFT,\r\n\tTitanium.UI.PORTRAIT\r\n];\r\n\r\nvar tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 });\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\nvar adView = Ti.UI.iOS.createAdView({ \r\n\twidth: 'auto', \r\n\theight: 'auto', \r\n/*\t\r\n\tbackgroundColor: 'red', \r\n\tbackgroundImage: 'none', \r\n*/\r\n\tbottom:0, \r\n\tzIndex:100 \r\n});\r\nadView.addEventListener('load', function(){ alert('iad loaded'); });\r\nwin1.add(adView);\r\nadView.show();\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ title:'Tab 2', backgroundColor:'#fff' });\r\nvar tab2 = Titanium.UI.createTab({ icon:'KS_nav_ui.png', title:'Tab 2', window:win2 });\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2);\r\n\r\nTi.Gesture.addEventListener('orientationchange', function(e) {\r\n\tif (e.orientation == Ti.Gesture.UPSIDE_PORTRAIT ||\r\n\t\te.orientation == Ti.Gesture.PORTRAIT) {\r\n\t\t\r\n\t\tadView.adSize = Ti.UI.iOS.AD_SIZE_PORTRAIT;\r\n\t}\r\n\telse if (e.orientation == Ti.Gesture.LANDSCAPE_LEFT ||\r\n\t\t\t e.orientation == Ti.Gesture.LANDSCAPE_RIGHT) {\r\n\t\t\t \r\n\t\tadView.adSize = Ti.UI.iOS.AD_SIZE_LANDSCAPE;\r\n\t}\r\n});\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.iOS.AdView does not properly support landscape settings", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "179141", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio 1.0.8.201201101928\r\nTi Mob SDK 1.9.0.v20120111233134\r\nOSX Lion\r\niPhone 4S, iPad 2\r\n\r\nExpected behavior of iAD rotating and displaying correctly in landscape is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T16:59:46.000+0000", "updated": "2012-01-12T16:59:46.000+0000" }, { "id": "180280", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening and closing this issue to update label and Fix Version field.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T16:19:00.000+0000", "updated": "2012-01-23T16:19:00.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }