{"action":"created","issue":{"url":"https://api.github.com/repos/edvin/tornadofx/issues/191","repository_url":"https://api.github.com/repos/edvin/tornadofx","labels_url":"https://api.github.com/repos/edvin/tornadofx/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/edvin/tornadofx/issues/191/comments","events_url":"https://api.github.com/repos/edvin/tornadofx/issues/191/events","html_url":"https://github.com/edvin/tornadofx/issues/191","id":183183489,"number":191,"title":"replaceWith breaks Live Views for non-nested views?","user":{"login":"radicaled","id":40635,"avatar_url":"https://avatars.githubusercontent.com/u/40635?v=3","gravatar_id":"","url":"https://api.github.com/users/radicaled","html_url":"https://github.com/radicaled","followers_url":"https://api.github.com/users/radicaled/followers","following_url":"https://api.github.com/users/radicaled/following{/other_user}","gists_url":"https://api.github.com/users/radicaled/gists{/gist_id}","starred_url":"https://api.github.com/users/radicaled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radicaled/subscriptions","organizations_url":"https://api.github.com/users/radicaled/orgs","repos_url":"https://api.github.com/users/radicaled/repos","events_url":"https://api.github.com/users/radicaled/events{/privacy}","received_events_url":"https://api.github.com/users/radicaled/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-15T02:22:15Z","updated_at":"2016-10-18T08:46:24Z","closed_at":null,"body":"It seems that replaceWith() breaks Live Views if you use it at the most top-level view, because it does not set `tornadofx.scene` property on the new view.\r\n\r\nNow, I might be doing this wrong, because my layout looks like this:\r\n\r\n```\r\nStart View\r\n  +---> (bunch of \"welcome to the app\" + etc controls here)\r\nEditing View\r\n  +---> (a bunch of knobs and everything)\r\n```\r\n\r\nAnd I suspect that `replaceWith` might be expecting a structure like this:\r\n\r\n````\r\nMaster View\r\n  +---> Start View\r\n  +---> Editing View\r\n```\r\n\r\nwith `Master View` never to be replaced, ever.\r\n\r\nI'm not sure if this is a bug or a feature (can't find much documentation on `replaceWith` either way)."},"comment":{"url":"https://api.github.com/repos/edvin/tornadofx/issues/comments/254445278","html_url":"https://github.com/edvin/tornadofx/issues/191#issuecomment-254445278","issue_url":"https://api.github.com/repos/edvin/tornadofx/issues/191","id":254445278,"user":{"login":"edvin","id":977035,"avatar_url":"https://avatars.githubusercontent.com/u/977035?v=3","gravatar_id":"","url":"https://api.github.com/users/edvin","html_url":"https://github.com/edvin","followers_url":"https://api.github.com/users/edvin/followers","following_url":"https://api.github.com/users/edvin/following{/other_user}","gists_url":"https://api.github.com/users/edvin/gists{/gist_id}","starred_url":"https://api.github.com/users/edvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edvin/subscriptions","organizations_url":"https://api.github.com/users/edvin/orgs","repos_url":"https://api.github.com/users/edvin/repos","events_url":"https://api.github.com/users/edvin/events{/privacy}","received_events_url":"https://api.github.com/users/edvin/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T08:46:24Z","updated_at":"2016-10-18T08:46:24Z","body":"I'd like to have this fixed if it isn't so please let me know how it goes. And try with version 1.5.7-SNAPSHOT  if possible :)"}}
{"actor":{"display_login":"edvin"}}