{"action":"opened","issue":{"url":"https://api.github.com/repos/peterbrittain/asciimatics/issues/233","repository_url":"https://api.github.com/repos/peterbrittain/asciimatics","labels_url":"https://api.github.com/repos/peterbrittain/asciimatics/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/peterbrittain/asciimatics/issues/233/comments","events_url":"https://api.github.com/repos/peterbrittain/asciimatics/issues/233/events","html_url":"https://github.com/peterbrittain/asciimatics/issues/233","id":507569644,"node_id":"MDU6SXNzdWU1MDc1Njk2NDQ=","number":233,"title":"Centered Label on Top of Widgets","user":{"login":"akennedy4155","id":12237683,"node_id":"MDQ6VXNlcjEyMjM3Njgz","avatar_url":"https://avatars0.githubusercontent.com/u/12237683?v=4","gravatar_id":"","url":"https://api.github.com/users/akennedy4155","html_url":"https://github.com/akennedy4155","followers_url":"https://api.github.com/users/akennedy4155/followers","following_url":"https://api.github.com/users/akennedy4155/following{/other_user}","gists_url":"https://api.github.com/users/akennedy4155/gists{/gist_id}","starred_url":"https://api.github.com/users/akennedy4155/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akennedy4155/subscriptions","organizations_url":"https://api.github.com/users/akennedy4155/orgs","repos_url":"https://api.github.com/users/akennedy4155/repos","events_url":"https://api.github.com/users/akennedy4155/events{/privacy}","received_events_url":"https://api.github.com/users/akennedy4155/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-16T02:04:36Z","updated_at":"2019-10-16T02:04:36Z","closed_at":null,"author_association":"NONE","body":"I saw that Labels are placed by default to the left of a Widget.  I found this when making a ListBox with a label.\r\n\r\nI'd like an option to have a label placed centered and on top of the widget rather than on the left.\r\n\r\nI thought about making this custom to the ListBox subclass that I am creating as part of my project, but inspecting the code makes this seem like something that happens at the level of a Widget and the way that Layout interacts with the Widget's offset.\r\n\r\nI'm happy to work on this and submit a PR if you identify that this is something that would be useful to the code-base.\r\n\r\nMy work would be an option for a widget to either have the label as it is now, or on top of the widget.  I think this would involve making a vertical offset property and some logic within the Layout to adjust how the Widget is displayed.\r\n\r\nIf something like this already exists, let me know.  Otherwise, if you think it would be valuable I can work on it and submit a PR with some tests."}}
{"actor":{"display_login":"akennedy4155"}}