{ "id": "61769", "key": "TIMOB-1137", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:44:58.000+0000", "created": "2011-04-15T02:44:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T19:22:31.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": "{html}
Run the following (slightly modified) #929\ntest:
\n\nvar win = Ti.UI.createWindow();\n\nvar data = [\n{title:'May 6, 2010 Report - Week 1', hasChild:false, test:1, header:'May 2010'},\n{title:'April 26, 2010 Report - Week 4', hasChild:false, test:2, header:'April 2010'}\n]\n \nvar nav = Ti.UI.iPhone.createNavigationGroup({\n window: win\n});\n\ntableview = Titanium.UI.createTableView({\n data:data,\n style: Titanium.UI.iPhone.TableViewStyle.GROUPED,\n backgroundColor:'transparent',\n rowBackgroundColor:'white'\n});\n\n\nvar newView1 = Titanium.UI.createView({\n backgroundColor:'blue'\n});\n\nnewImageView = Titanium.UI.createImageView({\n url:'default_app_logo.png',\n top:100,\n left:100,\n height:100,\n width:100\n});\n\nnewImageView.addEventListener('click', function(e)\n{\n var w = Titanium.UI.createWindow({ \n backgroundColor:'#336699', \n title:'Modal Window',\n barColor:'black',\n url:'largechart_scrollable.js',\n modal:true\n });\n \n var flexSpace = Titanium.UI.createButton({\n systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\n });\n\n var bb = Titanium.UI.createButton({\n title:'Return to Thumbnail View',\n style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED \n });\n\n // Add a toolbar\n var toolbar1 = Titanium.UI.createToolbar({\n items:[bb,flexSpace],\n top:0,\n borderTop:true,\n borderBottom:true\n });\n\n bb.addEventListener('click', function()\n {\n w.close();\n });\n \n w.add(toolbar1);\n w.open();\n});\n\nnewView1.add(newImageView);\n\n//create the scrollable (right-hand view)\nvar scrollView = Titanium.UI.createScrollableView({\n views:[newView1], // can add in addition views here\n showPagingControl:true,\n pagingControlHeight:30,\n maxZoomScale:2.0,\n currentPage:0\n});\n\nwin.add(scrollView);\n \nvar splitwin = Ti.UI.iPad.createSplitWindow({\n detailView:nav,\n masterView:tableview\n});\n \nsplitwin.addEventListener('visible',function(e)\n{\n if (e.view == 'detail')\n {\n e.button.title = \"Master\";\n win.leftNavButton = e.button;\n }\n else if (e.view == 'master')\n {\n win.leftNavButton = null;\n }\n});\n \nsplitwin.open();
\n
\nClick on the image to make the modal window appear. Which\ndirection will it slide in from? How will the view re-orient?\nNobody knows.
Actually, this makes for a better test:
\n\n\nvar data = [\n{title:'May 6, 2010 Report - Week 1', hasChild:false, test:1, header:'May 2010'},\n{title:'April 26, 2010 Report - Week 4', hasChild:false, test:2, header:'April 2010'}\n]\n\ntableview = Titanium.UI.createTableView({\n data:data,\n style: Titanium.UI.iPhone.TableViewStyle.GROUPED,\n backgroundColor:'transparent',\n rowBackgroundColor:'white'\n});\n\n\nvar newView1 = Titanium.UI.createView({\n backgroundColor:'blue'\n});\n\nnewImageView = Titanium.UI.createImageView({\n url:'default_app_logo.png',\n //top:100,\n //left:100,\n height:100,\n width:100\n});\n\nnewImageView.addEventListener('click', function(e)\n{\n var w = Titanium.UI.createWindow({ \n backgroundColor:'#336699', \n title:'Modal Window',\n barColor:'black',\n url:'largechart_scrollable.js',\n modal:true\n });\n \n var flexSpace = Titanium.UI.createButton({\n systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\n });\n\n var bb = Titanium.UI.createButton({\n title:'Return to Thumbnail View',\n style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED \n });\n\n // Add a toolbar\n var toolbar1 = Titanium.UI.createToolbar({\n items:[bb,flexSpace],\n top:0,\n borderTop:true,\n borderBottom:true\n });\n\n bb.addEventListener('click', function()\n {\n w.close();\n });\n \n w.add(toolbar1);\n w.open();\n});\n\nnewView1.add(newImageView);\n\n//create the scrollable (right-hand view)\n/*\nvar scrollView = Titanium.UI.createScrollableView({\n views:[newView1], // can add in addition views here\n showPagingControl:true,\n pagingControlHeight:30,\n maxZoomScale:2.0,\n currentPage:0\n})\n*/;\n\nvar splitwin = Ti.UI.iPad.createSplitWindow({\n detailView:newView1,\n masterView:tableview\n});\n \nsplitwin.addEventListener('visible',function(e)\n{\n if (e.view == 'detail')\n {\n e.button.title = \"Master\";\n win.leftNavButton = e.button;\n }\n else if (e.view == 'master')\n {\n win.leftNavButton = null;\n }\n});\n \nsplitwin.open();
\n
\nThis removes any issues caused by #929.
Somehow, I didn't bother checking the\nlargechart_scrollable.js
file for supported\norientations until now.