{"action":"opened","issue":{"url":"https://api.github.com/repos/mabe02/lanterna/issues/349","repository_url":"https://api.github.com/repos/mabe02/lanterna","labels_url":"https://api.github.com/repos/mabe02/lanterna/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/mabe02/lanterna/issues/349/comments","events_url":"https://api.github.com/repos/mabe02/lanterna/issues/349/events","html_url":"https://github.com/mabe02/lanterna/issues/349","id":296151529,"number":349,"title":"LinearLayout always uses northwest gravity","user":{"login":"ToxicFrog","id":90456,"avatar_url":"https://avatars1.githubusercontent.com/u/90456?v=4","gravatar_id":"","url":"https://api.github.com/users/ToxicFrog","html_url":"https://github.com/ToxicFrog","followers_url":"https://api.github.com/users/ToxicFrog/followers","following_url":"https://api.github.com/users/ToxicFrog/following{/other_user}","gists_url":"https://api.github.com/users/ToxicFrog/gists{/gist_id}","starred_url":"https://api.github.com/users/ToxicFrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToxicFrog/subscriptions","organizations_url":"https://api.github.com/users/ToxicFrog/orgs","repos_url":"https://api.github.com/users/ToxicFrog/repos","events_url":"https://api.github.com/users/ToxicFrog/events{/privacy}","received_events_url":"https://api.github.com/users/ToxicFrog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-11T01:51:42Z","updated_at":"2018-02-11T01:51:42Z","closed_at":null,"author_association":"NONE","body":"Specifically, it's often convenient to do something like this:\r\n```\r\nPanel [LinearLayout VERTICAL]\r\n┗Panel [LinearLayout HORIZONTAL] [FILL]\r\n ┗Label\r\n ┗Label\r\n ┗...\r\n ┗Panel [LinearLayout HORIZONTAL] [FILL]\r\n  ┗...\r\n```\r\nTo create a vertical list of horizontal lines of labels that can all be independently themed, etc.\r\n\r\nThe problem is that, in each line, all of the individual labels will be left aligned, because LinearLayout starts placing its children from the upper left.\r\n\r\nIf you want right justification, you can change that `FILL` to `END`, but then the horizontal Panels don't span the entire line, which means you can no longer theme the entire line, just the part covered by the Panel.\r\n\r\nSwap `HORIZONTAL` and `VERTICAL` and this describes the behaviour when you have a row-of-columns rather than a column-of-rows too."}}
{"actor":{"display_login":"ToxicFrog"}}