{"action":"created","issue":{"url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/597","labels_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/597/labels{/name}","comments_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/597/comments","events_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/597/events","html_url":"https://github.com/eclipsesource/tabris-js/issues/597","id":103497936,"number":597,"title":"Setting toolbarVisible is ignored when initial animations are not finished on iOS","user":{"login":"patrykmol","id":12428999,"avatar_url":"https://avatars.githubusercontent.com/u/12428999?v=3","gravatar_id":"","url":"https://api.github.com/users/patrykmol","html_url":"https://github.com/patrykmol","followers_url":"https://api.github.com/users/patrykmol/followers","following_url":"https://api.github.com/users/patrykmol/following{/other_user}","gists_url":"https://api.github.com/users/patrykmol/gists{/gist_id}","starred_url":"https://api.github.com/users/patrykmol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrykmol/subscriptions","organizations_url":"https://api.github.com/users/patrykmol/orgs","repos_url":"https://api.github.com/users/patrykmol/repos","events_url":"https://api.github.com/users/patrykmol/events{/privacy}","received_events_url":"https://api.github.com/users/patrykmol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"patrykmol","id":12428999,"avatar_url":"https://avatars.githubusercontent.com/u/12428999?v=3","gravatar_id":"","url":"https://api.github.com/users/patrykmol","html_url":"https://github.com/patrykmol","followers_url":"https://api.github.com/users/patrykmol/followers","following_url":"https://api.github.com/users/patrykmol/following{/other_user}","gists_url":"https://api.github.com/users/patrykmol/gists{/gist_id}","starred_url":"https://api.github.com/users/patrykmol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrykmol/subscriptions","organizations_url":"https://api.github.com/users/patrykmol/orgs","repos_url":"https://api.github.com/users/patrykmol/repos","events_url":"https://api.github.com/users/patrykmol/events{/privacy}","received_events_url":"https://api.github.com/users/patrykmol/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-27T12:33:28Z","updated_at":"2016-01-20T13:31:15Z","closed_at":null,"body":"Initially setting the property to `false` doesn't have any effect. It must be set in the resize event of the page for it to work.\r\n\r\nWorkaround:\r\n```\r\ntabris.create(\"Page\", {\r\n  title: \"Creating a fullscreen page\",\r\n  topLevel: true\r\n}).once(\"resize\", function() {\r\n  tabris.ui.set(\"toolbarVisible\", true);\r\n}).open();\r\n```"},"comment":{"url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/comments/173203974","html_url":"https://github.com/eclipsesource/tabris-js/issues/597#issuecomment-173203974","issue_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/597","id":173203974,"user":{"login":"cpetrov","id":2341769,"avatar_url":"https://avatars.githubusercontent.com/u/2341769?v=3","gravatar_id":"","url":"https://api.github.com/users/cpetrov","html_url":"https://github.com/cpetrov","followers_url":"https://api.github.com/users/cpetrov/followers","following_url":"https://api.github.com/users/cpetrov/following{/other_user}","gists_url":"https://api.github.com/users/cpetrov/gists{/gist_id}","starred_url":"https://api.github.com/users/cpetrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpetrov/subscriptions","organizations_url":"https://api.github.com/users/cpetrov/orgs","repos_url":"https://api.github.com/users/cpetrov/repos","events_url":"https://api.github.com/users/cpetrov/events{/privacy}","received_events_url":"https://api.github.com/users/cpetrov/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T13:31:15Z","updated_at":"2016-01-20T13:31:15Z","body":"This workaround does not work for non-topLevel pages. The top bar gets shortly black and then reappears again.\r\n\r\n```javascript\r\nvar page = tabris.create(\"Page\", {\r\n  title: \"Creating a new page dynamically\",\r\n  topLevel: true\r\n});\r\n\r\ntabris.create(\"Button\", {\r\n  layoutData: {left: 10, top: 10, right: 10},\r\n  text: \"Create and open a new page\"\r\n}).on(\"select\", function() {\r\n  tabris.create(\"Page\", {\r\n    title: \"Dynamically created page\",\r\n    topLevel: false\r\n  }).once(\"resize\", function() {\r\n    tabris.ui.set(\"toolbarVisible\", false);\r\n  }).once(\"disappear\", function() {\r\n    tabris.ui.set(\"toolbarVisible\", true);\r\n  }).open();\r\n}).appendTo(page);\r\n\r\npage.open();\r\n```"}}