{"action":"closed","issue":{"url":"https://api.github.com/repos/Famous/famous/issues/697","labels_url":"https://api.github.com/repos/Famous/famous/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/Famous/famous/issues/697/comments","events_url":"https://api.github.com/repos/Famous/famous/issues/697/events","html_url":"https://github.com/Famous/famous/issues/697","id":73532191,"number":697,"title":"FlexibleLayout subview not hidden when its ratio is 0","user":{"login":"adriano-di-giovanni","id":3408372,"avatar_url":"https://avatars.githubusercontent.com/u/3408372?v=3","gravatar_id":"","url":"https://api.github.com/users/adriano-di-giovanni","html_url":"https://github.com/adriano-di-giovanni","followers_url":"https://api.github.com/users/adriano-di-giovanni/followers","following_url":"https://api.github.com/users/adriano-di-giovanni/following{/other_user}","gists_url":"https://api.github.com/users/adriano-di-giovanni/gists{/gist_id}","starred_url":"https://api.github.com/users/adriano-di-giovanni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriano-di-giovanni/subscriptions","organizations_url":"https://api.github.com/users/adriano-di-giovanni/orgs","repos_url":"https://api.github.com/users/adriano-di-giovanni/repos","events_url":"https://api.github.com/users/adriano-di-giovanni/events{/privacy}","received_events_url":"https://api.github.com/users/adriano-di-giovanni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T06:36:19Z","updated_at":"2015-05-22T09:07:23Z","closed_at":"2015-05-22T09:07:23Z","body":"Setting FlexibleLayout's ratios to zero doesn't hide related subviews.\r\n\r\nPlease, find the code to test it yourself\r\n\r\n```javascript\r\ndefine(function (require) {\r\n\r\n  var\r\n    Engine = require('famous/core/Engine'),\r\n    FlexibleLayout = require('famous/views/FlexibleLayout'),\r\n    Surface = require('famous/core/Surface');\r\n\r\n  var\r\n    layout = _createLayout();\r\n\r\n  Engine.createContext().add(layout);\r\n\r\n  function _createLayout() {\r\n\r\n    var\r\n      sequence = [\r\n        new Surface({\r\n          content: 'left',\r\n          properties: {\r\n            textAlign: 'left'\r\n          }\r\n        }),\r\n        new Surface({\r\n          content: 'center',\r\n          properties: {\r\n            textAlign: 'center'\r\n          }\r\n        }),\r\n        new Surface({\r\n          content: 'right',\r\n          properties: {\r\n            textAlign: 'right'\r\n          }\r\n        })\r\n      ],\r\n      ratios = [ 1, 1, 1 ],\r\n      layout = new FlexibleLayout({\r\n        direction: FlexibleLayout.DIRECTION_Y\r\n      });\r\n\r\n    sequence[0].on('click', _onClick.bind(this, layout, [ 1, 0, 0 ]));\r\n    sequence[1].on('click', _onClick.bind(this, layout, [ 0, 1, 0 ]));\r\n    sequence[2].on('click', _onClick.bind(this, layout, [ 0, 0, 1 ]));\r\n\r\n    layout.sequenceFrom(sequence);\r\n    layout.setRatios(ratios);\r\n\r\n    return layout;\r\n  }\r\n\r\n  function _onClick(layout, ratios) {\r\n    layout.setRatios(ratios, { curve: 'linear', duration: 1000 });\r\n  }\r\n});\r\n```"}}