{"action":"created","issue":{"url":"https://api.github.com/repos/ytakzk/Hokusai/issues/5","repository_url":"https://api.github.com/repos/ytakzk/Hokusai","labels_url":"https://api.github.com/repos/ytakzk/Hokusai/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ytakzk/Hokusai/issues/5/comments","events_url":"https://api.github.com/repos/ytakzk/Hokusai/issues/5/events","html_url":"https://github.com/ytakzk/Hokusai/issues/5","id":137044781,"number":5,"title":"Fix for rotation issue","user":{"login":"rogomantik","id":1736768,"avatar_url":"https://avatars.githubusercontent.com/u/1736768?v=3","gravatar_id":"","url":"https://api.github.com/users/rogomantik","html_url":"https://github.com/rogomantik","followers_url":"https://api.github.com/users/rogomantik/followers","following_url":"https://api.github.com/users/rogomantik/following{/other_user}","gists_url":"https://api.github.com/users/rogomantik/gists{/gist_id}","starred_url":"https://api.github.com/users/rogomantik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogomantik/subscriptions","organizations_url":"https://api.github.com/users/rogomantik/orgs","repos_url":"https://api.github.com/users/rogomantik/repos","events_url":"https://api.github.com/users/rogomantik/events{/privacy}","received_events_url":"https://api.github.com/users/rogomantik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-28T11:57:50Z","updated_at":"2016-03-04T15:22:50Z","closed_at":"2016-03-04T15:20:48Z","body":"There is an issue to the rotation Portrait -> Landscape\r\nTo recreate the problem:\r\nLaunch the app in portrait. do not rotate\r\nOpen the menu when the device is still vertically\r\nRotate the device\r\n- the shapeLayer.fillColor is drew with portrait dimensions (\"background\" half coloured, half transparent)\r\n\r\nMy fix\r\nmenuView. shapeLayer. frame = frame menuView.\r\nmenuView. shapeLayer. bounds. origin = origin menuView. frame.\r\n**menuView. updatePath ()   //ADD THIS LINE**\r\nmenuView. shapeLayer. layoutIfNeeded ()\r\nmenuView. layoutIfNeeded ()\r\n\r\n\r\nI don't know if it's the right time to call menuView.updatePath()\r\nPerhaps it would be better to call it somewhere else or change something else\r\n"},"comment":{"url":"https://api.github.com/repos/ytakzk/Hokusai/issues/comments/192319706","html_url":"https://github.com/ytakzk/Hokusai/issues/5#issuecomment-192319706","issue_url":"https://api.github.com/repos/ytakzk/Hokusai/issues/5","id":192319706,"user":{"login":"ytakzk","id":7313406,"avatar_url":"https://avatars.githubusercontent.com/u/7313406?v=3","gravatar_id":"","url":"https://api.github.com/users/ytakzk","html_url":"https://github.com/ytakzk","followers_url":"https://api.github.com/users/ytakzk/followers","following_url":"https://api.github.com/users/ytakzk/following{/other_user}","gists_url":"https://api.github.com/users/ytakzk/gists{/gist_id}","starred_url":"https://api.github.com/users/ytakzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytakzk/subscriptions","organizations_url":"https://api.github.com/users/ytakzk/orgs","repos_url":"https://api.github.com/users/ytakzk/repos","events_url":"https://api.github.com/users/ytakzk/events{/privacy}","received_events_url":"https://api.github.com/users/ytakzk/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T15:22:50Z","updated_at":"2016-03-04T15:22:50Z","body":"@rogomantik @AlexCatch I fixed this bug. Thanks!"}}