{ "id": "150174", "key": "AC-286", "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": "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": "2015-11-14T01:11:10.000+0000", "created": "2015-08-05T09:30:26.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-14T01:11:10.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "I have dashboard screen with many icons with four tabs, clicking the icons will open the seperate windows. Among the icons only one window is set to landscape and others are set in both landscape and portrait mode. \r\nWhen device is in landscape mode and launching the window(which is set to landscape forcefully), the screen momentarily appears as shrinked in landscape mode and then quickly stretches back to appear normally in landscape mode. \r\nNote : Am not using any setTimeout function before opening the window\r\n", "attachment": [ { "id": "56341", "filename": "landscape.jpg", "author": { "name": "manjudpm", "key": "manjudpm", "displayName": "Manjula", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-05T09:13:27.000+0000", "size": 1832179, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Screen shrinks when forcefully set the app in landscape mode", "creator": { "name": "manjudpm", "key": "manjudpm", "displayName": "Manjula", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "manjudpm", "key": "manjudpm", "displayName": "Manjula", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacBook Pro version 10.10.3\r\nAppcelerator Studio, build: 4.1.1.201507141126\r\nCLI Version 4.0.1\r\nSDK Version 3.5.1.GA", "comment": { "comments": [ { "id": "359222", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~manjudpm] can you please attach a test case and steps to reproduce the issue?\r\n\r\nthanks", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-08-06T21:13:29.000+0000", "updated": "2015-08-06T21:13:29.000+0000" }, { "id": "364341", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nWe Tested this issue using the sample code below. The screen works as expected when forcefully set the app in landscape mode. If you continue get the unexpected screen settings, please post a sample code that we can test.\r\n\r\n*Test Environments:*\r\n\r\nCLI Version :4.1.3\r\nTitanium SDK Version:4.1.1.GA,\r\nDevice:iPad\r\nAppc Studio: Appcelerator Studio, build: 4.1.1.201507141126\r\nAlloy: 1.7.6\r\n\r\nMac OS X,Version = 10.10.1.\r\n\r\n*Test Steps*:\r\n\r\n* Create a classic project\r\n* Run with sample code.\r\n\r\n*Test Code:*\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\n\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n\r\n\r\n// create tab group\r\n\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n\r\n\r\n\r\n//\r\n\r\n// create base UI tab and root window\r\n\r\n//\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n\r\n title:'Tab 1',\r\n\r\n backgroundColor:'#fff'\r\n\r\n});\r\n\r\nwin1.orientationModes = [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT,Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT];\r\n\r\n\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n\r\n icon:'KS_nav_views.png',\r\n\r\n title:'Tab 1',\r\n\r\n window:win1\r\n\r\n});\r\n\r\n\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\r\ncolor:'#999',\r\n\r\ntext:'I am Window 1',\r\n\r\nfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\r\ntextAlign:'center',\r\n\r\nwidth:'auto'\r\n\r\n});\r\n\r\n\r\n\r\nwin1.add(label1);\r\n\r\n\r\n\r\n//\r\n\r\n// create controls tab and root window\r\n\r\n//\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n\r\n title:'Tab 2',\r\n\r\n backgroundColor:'#fff'\r\n\r\n});\r\n\r\nwin2.orientationModes = [Titanium.UI.LANDSCAPE_LEFT];\r\n\r\nvar tab2 = Titanium.UI.createTab({ \r\n\r\n icon:'KS_nav_ui.png',\r\n\r\n title:'Tab 2',\r\n\r\n window:win2\r\n\r\n});\r\n\r\n\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\r\ncolor:'#999',\r\n\r\ntext:'I am Window 2',\r\n\r\nfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\r\ntextAlign:'center',\r\n\r\nwidth:'auto'\r\n\r\n});\r\n\r\n\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n\r\n//create controls tab and root window\r\n\r\n//\r\n\r\nvar win3 = Titanium.UI.createWindow({ \r\n\r\n title:'Tab 3',\r\n\r\n backgroundColor:'pink'\r\n\r\n});\r\n\r\nwin3.orientationModes = [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT,Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT];\r\n\r\nvar tab3 = Titanium.UI.createTab({ \r\n\r\n icon:'KS_nav_ui.png',\r\n\r\n title:'Tab 3',\r\n\r\n window:win3\r\n\r\n});\r\n\r\n\r\n\r\nvar label3 = Titanium.UI.createLabel({\r\n\r\ncolor:'#999',\r\n\r\ntext:'I am Window 3',\r\n\r\nfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\r\ntextAlign:'center',\r\n\r\nwidth:'auto'\r\n\r\n});\r\n\r\n\r\n\r\nwin3.add(label3);\r\n\r\n\r\n\r\n//create controls tab and root window\r\n\r\n//\r\n\r\nvar win4 = Titanium.UI.createWindow({ \r\n\r\n title:'Tab 4',\r\n\r\n backgroundColor:'orange'\r\n\r\n});\r\n\r\nwin4.orientationModes = [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT,Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT];\r\n\r\nvar tab4 = Titanium.UI.createTab({ \r\n\r\n icon:'KS_nav_ui.png',\r\n\r\n title:'Tab 4',\r\n\r\n window:win4\r\n\r\n});\r\n\r\n\r\n\r\nvar label4 = Titanium.UI.createLabel({\r\n\r\ncolor:'#999',\r\n\r\ntext:'I am Window 4',\r\n\r\nfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\r\ntextAlign:'center',\r\n\r\nwidth:'auto'\r\n\r\n});\r\n\r\n\r\n\r\nwin4.add(label4);\r\n\r\n\r\n\r\n\r\n\r\n//\r\n\r\n// add tabs\r\n\r\n//\r\n\r\ntabGroup.addTab(tab1); \r\n\r\ntabGroup.addTab(tab2); \r\n\r\ntabGroup.addTab(tab3); \r\n\r\ntabGroup.addTab(tab4); \r\n\r\n// open tab group\r\n\r\ntabGroup.open();\r\n\r\n\r\n{code}\r\n\r\n*Test Result:*\r\n\r\nHere among of four windows, second window which is set to landscape forcefully) does not shrink.\r\n\r\nThanks\r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-19T06:54:41.000+0000", "updated": "2015-11-14T01:11:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }