{ "id": "102719", "key": "TIMOB-11269", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14787", "description": "2012 Sprint 26 API", "name": "2012 Sprint 26 API", "archived": true, "released": true, "releaseDate": "2012-12-31" }, { "id": "14786", "description": "2012 Sprint 26", "name": "2012 Sprint 26", "archived": true, "released": true, "releaseDate": "2012-12-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-26T11:15:21.000+0000", "created": "2012-10-05T06:17:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "KitchenSink", "api", "qe-and100112", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "24565", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "107945", "key": "TIMOB-12301", "fields": { "summary": "Backport TIMOB-11269 to 3.0.1", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:34.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is not a regression. It exists as far as 2.0.1.\r\n\r\nToggle height/width changes opacity of window from transparent to opaque. Even if it is resetting it, then it should not take 2 clicks to make it transparent again.\r\n\r\nSteps to reproduce:\r\n1) Install the refactored kitchen sink on android device and run it.\r\n2) Go to Base UI -> Window Properties\r\n3) Now press 'Toggle Opacity'.\r\n4) Press button 'Toggle Height/Width' twice.\r\n5) Now press 'Toggle Opacity'.\r\n\r\nExpected result:\r\n1) The app should run successfully over device.\r\n2) It should display 5 buttons to perform window actions.\r\n3) It should change the opacity of the window to transparent.\r\n4) It should resize the window to a smaller size (300*300) and then again to full screen size with a black background.\r\n5) It should change the opacity of the window to transparent in single click.\r\n\r\nActual result:\r\n1) The app runs successfully over device.\r\n2) It displays 5 buttons to perform window actions.\r\n3) It changes the opacity of the window to transparent.\r\n4) It resizes the window to a smaller size (300*300) and then again to full screen size with a black background.\r\n5) It do changes the opacity of the window to transparent on a single click. Even though it is opaque, it takes 2 clicks to turn screen transparent.\r\n", "attachment": [], "flagged": false, "summary": "Kitchen sink:Base UI:Window Properties->Toggling height/width changing opacity of window", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 3.0.0.v20121004213313\r\nTitanium  Studio: 3.0.0.201210031708\r\nDevice : Samsung Galaxy Nexus Android 4.0.2 , Samung GALAXY Tab 620 Android 3.2\r\nXcode : 4.5 \r\nMachine OS : MAC 10.8", "comment": { "comments": [ { "id": "231106", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request https://github.com/appcelerator/titanium_mobile/pull/3582", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-12T21:36:31.000+0000", "updated": "2012-12-12T21:36:31.000+0000" }, { "id": "231530", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here's the Kitchen Sink test case adapted for a lightweight window:\n\n{code}\n// current window\n\tvar win = Titanium.UI.createWindow();\n\t\n\t//\n\t// BACKGROUND COLOR\n\t//\n\tvar button = Titanium.UI.createButton({\n\t\ttitle:'Change BG Color',\n\t\twidth:220,\n\t\theight:40,\n\t\ttop:10\n\t});\n\tbutton.addEventListener('click', function()\n\t{\n\t\twin.backgroundImage = null;\n\t\twin.backgroundColor = '#336699';\n\t});\n\twin.add(button);\n\t\n\t//\n\t// BACKGROUND IMAGE\n\t//\n\tvar buttonImage = Titanium.UI.createButton({\n\t\ttitle:'Change BG Image',\n\t\twidth:220,\n\t\theight:40,\n\t\ttop:60\n\t});\n\tbuttonImage.addEventListener('click', function()\n\t{\n\t\twin.backgroundImage = '/images/bg.png';\n\t});\n\twin.add(buttonImage);\n\t\n\t//\n\t// TOGGLE WIDTH AND HEIGHT \n\t//\n\tvar buttonWidthHeight = Titanium.UI.createButton({\n\t\ttitle:'Toggle Height/Width',\n\t\twidth:220,\n\t\theight:40,\n\t\ttop:110\n\t});\n\tvar full=true;\n\tbuttonWidthHeight.addEventListener('click', function()\n\t{\n\t\tTi.API.info('in width height');\n\t\tif (full)\n\t\t{\n\t\t\twin.height = 300;\n\t\t\twin.width = 300;\n\t\t\twin.backgroundColor = 'black';\n\t\t\tfull=false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// unset them to go back to previous layout\n\t\t\twin.height = null;\n\t\t\twin.width = null;\n\t\t\twin.backgroundColor = null;\n\t\t\tfull=true;\n\t\t}\n\t});\n\twin.add(buttonWidthHeight);\n\t\n\t\n\t\n\t//\n\t// TOGGLE OPACITY PROPERTY\n\t//\n\tvar buttonOpacity = Titanium.UI.createButton({\n\t\ttitle:'Toggle Opacity',\n\t\twidth:220,\n\t\theight:40,\n\t\ttop:160\n\t});\n\tvar opacity=true;\n\tbuttonOpacity.addEventListener('click', function()\n\t{\n\t\tif (opacity)\n\t\t{\n\t\t\twin.opacity = 0.7;\n\t\t\topacity=false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\twin.opacity = 1.0;\n\t\t\topacity=true;\n\t\t}\n\t});\n\twin.add(buttonOpacity);\n\t\n\t\n\t//\n\t// LAYOUT AND DIMENSION PROPERTIES\n\t//\n\tvar buttonLayout = Titanium.UI.createButton({\n\t\ttitle:'Layout/Dimension Properties',\n\t\twidth:220,\n\t\theight:40,\n\t\ttop:210\n\t});\n\tvar layout=true;\n\tvar win1 = null;\n\tvar win2 = null;\n\tbuttonLayout.addEventListener('click', function()\n\t{\t\n\t\tif (layout)\n\t\t{\n\t\t\twin1 = Titanium.UI.createWindow({\n\t\t\t\theight:50,\n\t\t\t\twidth:200,\n\t\t\t\tbottom:50,\n\t\t\t\tleft:10,\n\t\t\t\tbackgroundColor:'#336699',\n\t\t\t\tborderRadius:10,\n\t\t\t\tzIndex:3\n\t\t\t});\n\t\t\twin2 = Titanium.UI.createWindow({\n\t\t\t\theight:50,\n\t\t\t\twidth:200,\n\t\t\t\tbottom:60,\n\t\t\t\tleft:20,\n\t\t\t\tbackgroundColor:'pink',\n\t\t\t\tborderRadius:10,\n\t\t\t\tzIndex:1\n\t\t\t});\n\t\t\t\n\t\t\twin1.open();\n\t\t\twin2.open();\n\t\t\tlayout=false;\n\t\t\t\n\t\t\twin.addEventListener('close', function() {\n\t\t\t\twin1.close();\n\t\t\t\twin2.close();\n\t\t\t\tlayout=true;\n\t\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\twin1.close();\n\t\t\twin2.close();\n\t\t\tlayout=true;\n\t\t}\n\t});\n\twin.add(buttonLayout);\n\t\n\t//\n\t// TOGGLE BORDER PROPERTIES\n\t//\n\tvar buttonBorder = Titanium.UI.createButton({\n\t\ttitle:'Toggle Border Properties',\n\t\twidth:220,\n\t\theight:40,\n\t\ttop:260\n\t});\n\tvar border=true;\n\tbuttonBorder.addEventListener('click', function()\n\t{\n\t\tif (border)\n\t\t{\n\t\t\twin.borderWidth = 5;\n\t\t\twin.borderColor = '#999';\n\t\t\twin.borderRadius = 10;\n\t\t\tborder=false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\twin.borderWidth = 0;\n\t\t\twin.borderColor = null;\n\t\t\twin.borderRadius = 0;\n\t\t\tborder=true;\n\t\t}\n\t});\n\t\n\t// add iphone specific tests\n\tif (Titanium.Platform.name == 'iPhone OS')\n\t{\n\t\twin.add(buttonBorder);\n\t}\n\t\nwin.open();\n{code}", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-14T23:30:52.000+0000", "updated": "2012-12-14T23:30:52.000+0000" }, { "id": "234613", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport task TIMOB-12301\nBackport PR https://github.com/appcelerator/titanium_mobile/pull/3720", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-16T11:17:22.000+0000", "updated": "2013-01-16T11:17:22.000+0000" }, { "id": "235654", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\nTested and verified with:\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK, build: 3.0.2.v20130123121656\nTitanium Studio, build: 3.1.0.v20130123144204\nNexusS3 4.0.4\niPhone4S 5.0.1", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T00:18:39.000+0000", "updated": "2013-01-24T00:18:39.000+0000" }, { "id": "263383", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update label", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T11:12:45.000+0000", "updated": "2013-07-26T11:12:45.000+0000" }, { "id": "263384", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated Label.\r\nClosing as Fixed.\r\n\r\nVerified with Environment:\r\nStudio: 3.1.1.201306131423\r\nSDK: 3.1.2.v20130725180746\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice: HTC Desire(v4.0.3),ipad mini(v6.0)", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T11:15:21.000+0000", "updated": "2013-07-26T11:15:21.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }