{"action":"opened","issue":{"url":"https://api.github.com/repos/edvin/tornadofx/issues/463","repository_url":"https://api.github.com/repos/edvin/tornadofx","labels_url":"https://api.github.com/repos/edvin/tornadofx/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/edvin/tornadofx/issues/463/comments","events_url":"https://api.github.com/repos/edvin/tornadofx/issues/463/events","html_url":"https://github.com/edvin/tornadofx/issues/463","id":259252802,"number":463,"title":"Drawer refreshes to wrong item when the app window looses focus and gets it again","user":{"login":"DrFornax","id":6535567,"avatar_url":"https://avatars3.githubusercontent.com/u/6535567?v=4","gravatar_id":"","url":"https://api.github.com/users/DrFornax","html_url":"https://github.com/DrFornax","followers_url":"https://api.github.com/users/DrFornax/followers","following_url":"https://api.github.com/users/DrFornax/following{/other_user}","gists_url":"https://api.github.com/users/DrFornax/gists{/gist_id}","starred_url":"https://api.github.com/users/DrFornax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrFornax/subscriptions","organizations_url":"https://api.github.com/users/DrFornax/orgs","repos_url":"https://api.github.com/users/DrFornax/repos","events_url":"https://api.github.com/users/DrFornax/events{/privacy}","received_events_url":"https://api.github.com/users/DrFornax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-20T18:08:11Z","updated_at":"2017-09-20T18:08:11Z","closed_at":null,"author_association":"NONE","body":"I have a problem with the drawer on Mac OS. Tested with TornadoFX 1.7.12-SNAPSHOT and 1.7.11.\r\n\r\n> override val root = drawer {\r\n>         item<View1>(expanded = true)\r\n>         item<View2>()\r\n>         item<View3>()\r\n> }\r\n\r\nWhen I open the View2 or View3 item of the Drawer, go to an other application and go back to the current View item, it switches back to the View1.\r\n\r\nSteps to reproduce:\r\n\r\n- Have a drawer with multiple items and make the first expanded=true\r\n- Click on one of the drawers that are not expanded\r\n- Click into a different window (IntelliJ IDEA for example)\r\n- Go back to the TornafoFX App and click somewhere inside the view of the current item\r\n--> The view switches back to the default view\r\n\r\nThe same problem occurs when you have different screens and move the app from one screen to another screen and then click inside the view. It will switch to the default item.\r\n\r\nThank you for your help"}}
{"actor":{"display_login":"DrFornax"}}