{"action":"closed","issue":{"url":"https://api.github.com/repos/maketechnology/chromium.swt/issues/20","repository_url":"https://api.github.com/repos/maketechnology/chromium.swt","labels_url":"https://api.github.com/repos/maketechnology/chromium.swt/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/maketechnology/chromium.swt/issues/20/comments","events_url":"https://api.github.com/repos/maketechnology/chromium.swt/issues/20/events","html_url":"https://github.com/maketechnology/chromium.swt/issues/20","id":342673612,"node_id":"MDU6SXNzdWUzNDI2NzM2MTI=","number":20,"title":"HDPI screens with zoom level will not size the internal browser correctly","user":{"login":"jcompagner","id":3274268,"node_id":"MDQ6VXNlcjMyNzQyNjg=","avatar_url":"https://avatars1.githubusercontent.com/u/3274268?v=4","gravatar_id":"","url":"https://api.github.com/users/jcompagner","html_url":"https://github.com/jcompagner","followers_url":"https://api.github.com/users/jcompagner/followers","following_url":"https://api.github.com/users/jcompagner/following{/other_user}","gists_url":"https://api.github.com/users/jcompagner/gists{/gist_id}","starred_url":"https://api.github.com/users/jcompagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcompagner/subscriptions","organizations_url":"https://api.github.com/users/jcompagner/orgs","repos_url":"https://api.github.com/users/jcompagner/repos","events_url":"https://api.github.com/users/jcompagner/events{/privacy}","received_events_url":"https://api.github.com/users/jcompagner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-19T10:36:12Z","updated_at":"2018-11-30T06:55:53Z","closed_at":"2018-11-30T06:55:53Z","author_association":"NONE","body":"we call: chromium.getSize() \r\n\r\nwhich is of an eclipse Control class:\r\n\r\npublic Point getSize (){\r\n\tcheckWidget ();\r\n\treturn DPIUtil.autoScaleDown(getSizeInPixels ());\r\n}\r\n\r\n\r\nthat scopes the actual size in pixels down to the \"rendered\" size on screen.\r\n\r\nso for me 2144x1580 in real pixels are reported back as: 1072x790\r\n\r\nbut it seems that the internal browser component really wants the actual size in pixels \r\nso we have to do the reverse, i added a method:\r\n\r\n    private Point getChromiumSize() {\r\n\t\tPoint size = chromium.getSize();\r\n\t\treturn DPIUtil.autoScaleUp(size);\r\n\t}\r\n\r\nand everywhere we do chromium.getSize() i replaced it with the above method call. \r\n"}}
{"actor":{"display_login":"gzunino"}}