{"action":"opened","issue":{"url":"https://api.github.com/repos/viskell/viskell/issues/437","repository_url":"https://api.github.com/repos/viskell/viskell","labels_url":"https://api.github.com/repos/viskell/viskell/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/viskell/viskell/issues/437/comments","events_url":"https://api.github.com/repos/viskell/viskell/issues/437/events","html_url":"https://github.com/viskell/viskell/issues/437","id":147217176,"number":437,"title":"Menu can be partly off screen if popped up close to edge","user":{"login":"andrewdavidmackenzie","id":5529132,"avatar_url":"https://avatars.githubusercontent.com/u/5529132?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewdavidmackenzie","html_url":"https://github.com/andrewdavidmackenzie","followers_url":"https://api.github.com/users/andrewdavidmackenzie/followers","following_url":"https://api.github.com/users/andrewdavidmackenzie/following{/other_user}","gists_url":"https://api.github.com/users/andrewdavidmackenzie/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewdavidmackenzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewdavidmackenzie/subscriptions","organizations_url":"https://api.github.com/users/andrewdavidmackenzie/orgs","repos_url":"https://api.github.com/users/andrewdavidmackenzie/repos","events_url":"https://api.github.com/users/andrewdavidmackenzie/events{/privacy}","received_events_url":"https://api.github.com/users/andrewdavidmackenzie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/viskell/viskell/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-10T11:35:14Z","updated_at":"2016-04-10T11:35:14Z","closed_at":null,"body":"# Problem\r\nWhen you click on the background and the tool-bar is popped up, sometimes it is popped-up partially off-screen and some of the options are obscured.\r\n\r\nThis is worse when the \"close\" button is one of those that is off-screen, so you can't close it easily.\r\n\r\n# Solution\r\nWhen adding the tool bar to the pane, check if any of the edges are beyond the current viewable area, and if so snap them onto the viewable area.\r\n\r\nThe corner case where this is impossible (view pane smaller than the tool bar in 1 or 2 dimensions) can just be ignored and the tool bar added as now."}}