{"action":"created","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/914","repository_url":"https://api.github.com/repos/Hammerspoon/hammerspoon","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/914/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/914/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/914/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/914","id":158746290,"number":914,"title":"hs.menubar icons/titles are sometimes trunctated","user":{"login":"ventolin","id":33061,"avatar_url":"https://avatars1.githubusercontent.com/u/33061?v=4","gravatar_id":"","url":"https://api.github.com/users/ventolin","html_url":"https://github.com/ventolin","followers_url":"https://api.github.com/users/ventolin/followers","following_url":"https://api.github.com/users/ventolin/following{/other_user}","gists_url":"https://api.github.com/users/ventolin/gists{/gist_id}","starred_url":"https://api.github.com/users/ventolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventolin/subscriptions","organizations_url":"https://api.github.com/users/ventolin/orgs","repos_url":"https://api.github.com/users/ventolin/repos","events_url":"https://api.github.com/users/ventolin/events{/privacy}","received_events_url":"https://api.github.com/users/ventolin/received_events","type":"User","site_admin":false},"labels":[{"id":135973448,"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-06T18:44:31Z","updated_at":"2017-09-04T23:17:33Z","closed_at":"2017-09-04T21:19:32Z","author_association":"NONE","body":"There seems to be an issue with setting both the title and icon for a menubar, where the title gets cut off -- the width is too small. Interestingly, if you reverse the order (set the icon before the title, or the other way around), in both cases the title is cut off, but the amount that's cut off is different.\n\nI'm on a retina display, El Capitan (10.11.5), Hammerspoon 0.9.46.\n\nHere's a simple init.lua to demonstrate:\n\n``` lua\nlocal iconPath = '/Applications/Hammerspoon.app/Contents/Resources/statusicon.pdf'\nlocal menu = hs.menubar.new()\nlocal title = 'title'\n\nmenu:setIcon(iconPath)\nmenu:setTitle(title)\n\n-- try this, too... different result\n-- menu:setTitle(title)\n-- menu:setIcon(iconPath)\n\n```\n\nIcon first:\n<img width=\"92\" alt=\"icon_first\" src=\"https://cloud.githubusercontent.com/assets/33061/15833408/8fba1bb0-2bdb-11e6-8441-2abb5c8e24f7.png\">\n\nTitle first:\n<img width=\"93\" alt=\"title_first\" src=\"https://cloud.githubusercontent.com/assets/33061/15833407/8fb6dd7e-2bdb-11e6-92c5-659768a236c1.png\">\n"},"comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments/327038101","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/914#issuecomment-327038101","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/914","id":327038101,"user":{"login":"latenitefilms","id":22286696,"avatar_url":"https://avatars2.githubusercontent.com/u/22286696?v=4","gravatar_id":"","url":"https://api.github.com/users/latenitefilms","html_url":"https://github.com/latenitefilms","followers_url":"https://api.github.com/users/latenitefilms/followers","following_url":"https://api.github.com/users/latenitefilms/following{/other_user}","gists_url":"https://api.github.com/users/latenitefilms/gists{/gist_id}","starred_url":"https://api.github.com/users/latenitefilms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latenitefilms/subscriptions","organizations_url":"https://api.github.com/users/latenitefilms/orgs","repos_url":"https://api.github.com/users/latenitefilms/repos","events_url":"https://api.github.com/users/latenitefilms/events{/privacy}","received_events_url":"https://api.github.com/users/latenitefilms/received_events","type":"User","site_admin":false},"created_at":"2017-09-04T23:17:33Z","updated_at":"2017-09-04T23:17:33Z","author_association":"CONTRIBUTOR","body":"Discussed here: https://github.com/CommandPost/CommandPost/issues/406"}}
{"actor":{"display_login":"latenitefilms"}}