{"action":"created","issue":{"url":"https://api.github.com/repos/leefsmp/Re-Flex/issues/48","repository_url":"https://api.github.com/repos/leefsmp/Re-Flex","labels_url":"https://api.github.com/repos/leefsmp/Re-Flex/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/leefsmp/Re-Flex/issues/48/comments","events_url":"https://api.github.com/repos/leefsmp/Re-Flex/issues/48/events","html_url":"https://github.com/leefsmp/Re-Flex/issues/48","id":311754089,"number":48,"title":"Handle hidden elements","user":{"login":"ebertmi","id":1634468,"avatar_url":"https://avatars0.githubusercontent.com/u/1634468?v=4","gravatar_id":"","url":"https://api.github.com/users/ebertmi","html_url":"https://github.com/ebertmi","followers_url":"https://api.github.com/users/ebertmi/followers","following_url":"https://api.github.com/users/ebertmi/following{/other_user}","gists_url":"https://api.github.com/users/ebertmi/gists{/gist_id}","starred_url":"https://api.github.com/users/ebertmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebertmi/subscriptions","organizations_url":"https://api.github.com/users/ebertmi/orgs","repos_url":"https://api.github.com/users/ebertmi/repos","events_url":"https://api.github.com/users/ebertmi/events{/privacy}","received_events_url":"https://api.github.com/users/ebertmi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-05T20:17:03Z","updated_at":"2018-04-06T09:41:09Z","closed_at":null,"author_association":"NONE","body":"I've got a maybe specific use case where I am trying to render sometimes inactive elements that cannot be unmounted due to some connected dom nodes. If I do so I am going to loose state information (handled outside of react).\r\n\r\nTherefore, I would like to know how it would be possible to avoid using hidden elements (or with a special flag) in the calculation of the element width. Is this possible at the moment? If not, could maybe give me some pointers how I could achieve this?\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/leefsmp/Re-Flex/issues/comments/379203101","html_url":"https://github.com/leefsmp/Re-Flex/issues/48#issuecomment-379203101","issue_url":"https://api.github.com/repos/leefsmp/Re-Flex/issues/48","id":379203101,"user":{"login":"ebertmi","id":1634468,"avatar_url":"https://avatars0.githubusercontent.com/u/1634468?v=4","gravatar_id":"","url":"https://api.github.com/users/ebertmi","html_url":"https://github.com/ebertmi","followers_url":"https://api.github.com/users/ebertmi/followers","following_url":"https://api.github.com/users/ebertmi/following{/other_user}","gists_url":"https://api.github.com/users/ebertmi/gists{/gist_id}","starred_url":"https://api.github.com/users/ebertmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebertmi/subscriptions","organizations_url":"https://api.github.com/users/ebertmi/orgs","repos_url":"https://api.github.com/users/ebertmi/repos","events_url":"https://api.github.com/users/ebertmi/events{/privacy}","received_events_url":"https://api.github.com/users/ebertmi/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T09:41:09Z","updated_at":"2018-04-06T09:41:09Z","author_association":"NONE","body":"I try to explain it a little bit later - got late yesterday.\r\n\r\nScenario:\r\nI am using the library for viewing multiple tabs with mixed content (e.g. file tabs with monaco editor, terminal output with xterm.js, other specific tabs). Now xterm.js has a little bit stupid behavior which destroys the element and losses the previous state and does not offer a real state management. Therefore, I do not remove the component if it is not viewed and instead I set the status as inactive and render it with the HTML `hidden` attribute.\r\n\r\nNow if I include an ReflexElement with an child that is hidden it still takes it up in the calculation for the available space. In case of two tabs and only viewing one it still only takes up 50% of the available space.\r\nMy goal would be to ignore elements that are hidden from the calculation."}}
{"actor":{"display_login":"ebertmi"}}