{ "id": "61524", "key": "TIMOB-892", "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": "12095", "description": "", "name": "Sprint 2012-03", "archived": true, "released": true, "releaseDate": "2012-02-12" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-04T18:09:51.000+0000", "created": "2011-04-15T02:38:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "defect", "exalture", "module_views", "parity", "qe-4.0.0", "qe-testadded", "training" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-03-04T18:09:51.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": "Though hide() & show() are handled appropriately in views, the state of the property 'visible' is never changed. If you pass visible: false in the createXXX() method, it will be respected and used (the view will be hidden), but the value of .visible never changes again even after calling show().\r\n\r\nSee TiUIView.show() and TiUIView.hide().", "attachment": [], "flagged": false, "summary": "View 'visible' property not updated by show() or hide()", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 230, "state": "closed", "name": "2014 Sprint 21 SDK", "startDate": "2014-10-13T22:00:57.270Z", "endDate": "2014-10-25T00:00:00.000Z", "completeDate": "2014-10-27T16:33:06.432Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "180982", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4. TESTING\r\n----\r\n\r\nSample code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor:'red',\r\n\twidth:100,\r\n\theight:100,\r\n\ttop:20\r\n});\r\nwin.add(view);\r\n\r\nvar b = Ti.UI.createButton({\r\n\ttitle:'Show/hide',\r\n\twidth:140,\r\n\theight:40,\r\n\ttop:160\r\n});\r\nb.addEventListener('click', function() {\r\n\tTi.API.info('Visible: '+view.visible);\r\n\tif (view.visible) {\r\n\t\tview.hide();\r\n\t}\r\n\telse {\r\n\t\tview.show();\r\n\t}\r\n});\r\nwin.add(b);\r\n\r\nvar b2 = Ti.UI.createButton({\r\n\ttitle:'Toggle visible',\r\n\twidth:140,\r\n\theight:40,\r\n\ttop:220\r\n});\r\nb2.addEventListener('click', function() {\r\n\tview.visible = !view.visible;\r\n});\r\nwin.add(b2);\r\n\r\nwin.open();\r\n{code}\r\n\r\nClick on both the \"show/hide\" and \"toggle visible\" buttons a few times, to make sure that the expected behavior occurs. There may be a secondary bug involving the initial value of {{view.visible}}.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-27T17:37:52.000+0000", "updated": "2012-01-27T17:38:20.000+0000" }, { "id": "181631", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120203160134\r\nTitanium Studio, build: 1.0.8.201201262211\r\nRuntime: V8, Rhino\r\nxcode: 4.2\r\nDevices: Droid 1 (2.2.3), iPhone 4S Sprint (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-03T16:56:00.000+0000", "updated": "2012-02-03T16:56:00.000+0000" }, { "id": "181633", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to fix fields.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-03T16:57:51.000+0000", "updated": "2012-02-03T16:57:51.000+0000" }, { "id": "277313", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "visible property not updated with other events.It works only with 'click' event.Seems that bug is not fixed\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-30T05:10:59.000+0000", "updated": "2013-10-30T05:10:59.000+0000" }, { "id": "277315", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "testcase:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white'\r\n});\r\n \r\nvar view = Ti.UI.createView({\r\n backgroundColor:'red',\r\n width:100,\r\n height:100,\r\n top:20\r\n});\r\nwin.add(view);\r\n \tview.visible = !view.visible; //to avoid initial secondary bug; \r\n\tview.hide();\r\n\tTi.API.info('called view.hide(): '+view.visible);\r\n \r\n view.show();\r\n Ti.API.info('called view.show(): '+view.visible);\r\n\twin.open();\r\n{code}\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-30T05:15:56.000+0000", "updated": "2014-09-09T15:27:08.000+0000" }, { "id": "329211", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated PRs merged. [~hpham] and [~sunila], in the future, please add comments to the JIRA ticket so it's obvious why the status is updated.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-23T19:19:06.000+0000", "updated": "2014-10-23T19:19:06.000+0000" }, { "id": "345000", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.2\r\nAppcelerator Studio, build: 4.0.0.201502171827\r\nTitanium SDK build: 4.0.0.v20150227132702\r\nTitanium CLI, build: 3.5.0-dev\r\nAlloy: 1.5.1\r\nAndroid build tools: 21.1.2\r\nNexus 6 (5.0.1), Samsung Galaxy S3 (4.4.2)\r\n\r\nBuilt to both devices, the visible property is now updated by the show and hide methods.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-03-04T00:29:43.000+0000", "updated": "2015-03-04T00:29:43.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }