{"action":"created","issue":{"url":"https://api.github.com/repos/scalessec/Toast-Swift/issues/74","repository_url":"https://api.github.com/repos/scalessec/Toast-Swift","labels_url":"https://api.github.com/repos/scalessec/Toast-Swift/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/scalessec/Toast-Swift/issues/74/comments","events_url":"https://api.github.com/repos/scalessec/Toast-Swift/issues/74/events","html_url":"https://github.com/scalessec/Toast-Swift/pull/74","id":245434769,"number":74,"title":"Fix .center alignement ","user":{"login":"florentilroxxe","id":2052897,"avatar_url":"https://avatars3.githubusercontent.com/u/2052897?v=4","gravatar_id":"","url":"https://api.github.com/users/florentilroxxe","html_url":"https://github.com/florentilroxxe","followers_url":"https://api.github.com/users/florentilroxxe/followers","following_url":"https://api.github.com/users/florentilroxxe/following{/other_user}","gists_url":"https://api.github.com/users/florentilroxxe/gists{/gist_id}","starred_url":"https://api.github.com/users/florentilroxxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florentilroxxe/subscriptions","organizations_url":"https://api.github.com/users/florentilroxxe/orgs","repos_url":"https://api.github.com/users/florentilroxxe/repos","events_url":"https://api.github.com/users/florentilroxxe/events{/privacy}","received_events_url":"https://api.github.com/users/florentilroxxe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-25T15:10:46Z","updated_at":"2017-11-18T15:37:06Z","closed_at":"2017-11-18T15:37:06Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/scalessec/Toast-Swift/pulls/74","html_url":"https://github.com/scalessec/Toast-Swift/pull/74","diff_url":"https://github.com/scalessec/Toast-Swift/pull/74.diff","patch_url":"https://github.com/scalessec/Toast-Swift/pull/74.patch"},"body":"I'm not sure if this was known behaviour but using .center alignement and a short title didn't actually center the title.\r\n\r\nThe issue was that the width of the title label was equal to the width of the string so that .center alignement wouldn't have any effect. \r\n\r\nI modified the code to make the width of the title and message labels equal to the width of the toast (minus maxHeightPercentage etc...). This allows them to be correctly centered when using titleAlignment = .center and messageAlignment = .center. "},"comment":{"url":"https://api.github.com/repos/scalessec/Toast-Swift/issues/comments/345450027","html_url":"https://github.com/scalessec/Toast-Swift/pull/74#issuecomment-345450027","issue_url":"https://api.github.com/repos/scalessec/Toast-Swift/issues/74","id":345450027,"user":{"login":"scalessec","id":282950,"avatar_url":"https://avatars3.githubusercontent.com/u/282950?v=4","gravatar_id":"","url":"https://api.github.com/users/scalessec","html_url":"https://github.com/scalessec","followers_url":"https://api.github.com/users/scalessec/followers","following_url":"https://api.github.com/users/scalessec/following{/other_user}","gists_url":"https://api.github.com/users/scalessec/gists{/gist_id}","starred_url":"https://api.github.com/users/scalessec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalessec/subscriptions","organizations_url":"https://api.github.com/users/scalessec/orgs","repos_url":"https://api.github.com/users/scalessec/repos","events_url":"https://api.github.com/users/scalessec/events{/privacy}","received_events_url":"https://api.github.com/users/scalessec/received_events","type":"User","site_admin":false},"created_at":"2017-11-18T15:37:06Z","updated_at":"2017-11-18T15:37:06Z","author_association":"OWNER","body":"Fixed via #70. Thanks!"}}
{"actor":{"display_login":"scalessec"}}