{"action":"opened","issue":{"url":"https://api.github.com/repos/openhab/openhab-android/issues/913","repository_url":"https://api.github.com/repos/openhab/openhab-android","labels_url":"https://api.github.com/repos/openhab/openhab-android/issues/913/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab-android/issues/913/comments","events_url":"https://api.github.com/repos/openhab/openhab-android/issues/913/events","html_url":"https://github.com/openhab/openhab-android/issues/913","id":328772616,"node_id":"MDU6SXNzdWUzMjg3NzI2MTY=","number":913,"title":"SVG with height and width attributes aren't shown correctly","user":{"login":"mueller-ma","id":22525368,"node_id":"MDQ6VXNlcjIyNTI1MzY4","avatar_url":"https://avatars1.githubusercontent.com/u/22525368?v=4","gravatar_id":"","url":"https://api.github.com/users/mueller-ma","html_url":"https://github.com/mueller-ma","followers_url":"https://api.github.com/users/mueller-ma/followers","following_url":"https://api.github.com/users/mueller-ma/following{/other_user}","gists_url":"https://api.github.com/users/mueller-ma/gists{/gist_id}","starred_url":"https://api.github.com/users/mueller-ma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mueller-ma/subscriptions","organizations_url":"https://api.github.com/users/mueller-ma/orgs","repos_url":"https://api.github.com/users/mueller-ma/repos","events_url":"https://api.github.com/users/mueller-ma/events{/privacy}","received_events_url":"https://api.github.com/users/mueller-ma/received_events","type":"User","site_admin":false},"labels":[{"id":91955060,"node_id":"MDU6TGFiZWw5MTk1NTA2MA==","url":"https://api.github.com/repos/openhab/openhab-android/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-02T19:57:45Z","updated_at":"2018-06-02T19:57:45Z","closed_at":null,"author_association":"MEMBER","body":"<!-- Please search the issue, if there is one with your issue -->\r\n\r\n### Actual behaviour\r\nSee https://community.openhab.org/t/version-2-1-toast-messages-for-the-voice-input/44436/4\r\n \r\n### Steps to reproduce\r\n1. Use the icon provided in the thread.\r\n\r\n\r\n### Can you reproduce the issue in demo mode?\r\n<!-- You dont need to fill all server related information, when you can reproduce the bug in demo mode -->\r\n<!-- Only on a specific subpage? -->\r\nNo\r\n\r\n\r\nThe issue is that the icon has a larger height than the viewport dimens that are used for [creating the drawable](https://github.com/openhab/openhab-android/blob/master/mobile/src/main/java/org/openhab/habdroid/util/MyWebImage.java#L136). Having a fixed heigth for icons seems wrong to me as every ui should scale the icons according to the available space. I guess the best fix would be to remove the height and width from the svg before it's rendered by the svg lib."}}
{"actor":{"display_login":"mueller-ma"}}