{"action":"created","issue":{"url":"https://api.github.com/repos/balzathor/UltimateBrowserProject/issues/53","labels_url":"https://api.github.com/repos/balzathor/UltimateBrowserProject/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/balzathor/UltimateBrowserProject/issues/53/comments","events_url":"https://api.github.com/repos/balzathor/UltimateBrowserProject/issues/53/events","html_url":"https://github.com/balzathor/UltimateBrowserProject/issues/53","id":115851214,"number":53,"title":"Weird Bug pls help","user":{"login":"balzathor","id":11243138,"avatar_url":"https://avatars.githubusercontent.com/u/11243138?v=3","gravatar_id":"","url":"https://api.github.com/users/balzathor","html_url":"https://github.com/balzathor","followers_url":"https://api.github.com/users/balzathor/followers","following_url":"https://api.github.com/users/balzathor/following{/other_user}","gists_url":"https://api.github.com/users/balzathor/gists{/gist_id}","starred_url":"https://api.github.com/users/balzathor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balzathor/subscriptions","organizations_url":"https://api.github.com/users/balzathor/orgs","repos_url":"https://api.github.com/users/balzathor/repos","events_url":"https://api.github.com/users/balzathor/events{/privacy}","received_events_url":"https://api.github.com/users/balzathor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-11-09T10:47:11Z","updated_at":"2015-11-13T13:08:29Z","closed_at":null,"body":"Well, so now, the top part of the page is not shown in the view until I zoom in.\r\n\r\nHere's the unzoomed page -\r\n\r\n![Unzoomed](https://cloud.githubusercontent.com/assets/11243138/11031816/1cec1576-86fd-11e5-8764-3c5394a035ed.png)\r\n\r\n\r\nAnd here's the page zoomed in -\r\n\r\n![zoom](https://cloud.githubusercontent.com/assets/11243138/11031823/2cbfbbd8-86fd-11e5-9200-46bf747d21ec.png)\r\n\r\n\r\nAs you can see the top part of the page is not shown in the unzoomed view, and I haven't touched anything in the WebView. @takahirom @james9909 pls help ;-;"},"comment":{"url":"https://api.github.com/repos/balzathor/UltimateBrowserProject/issues/comments/156427303","html_url":"https://github.com/balzathor/UltimateBrowserProject/issues/53#issuecomment-156427303","issue_url":"https://api.github.com/repos/balzathor/UltimateBrowserProject/issues/53","id":156427303,"user":{"login":"xdevs23","id":6959245,"avatar_url":"https://avatars.githubusercontent.com/u/6959245?v=3","gravatar_id":"","url":"https://api.github.com/users/xdevs23","html_url":"https://github.com/xdevs23","followers_url":"https://api.github.com/users/xdevs23/followers","following_url":"https://api.github.com/users/xdevs23/following{/other_user}","gists_url":"https://api.github.com/users/xdevs23/gists{/gist_id}","starred_url":"https://api.github.com/users/xdevs23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdevs23/subscriptions","organizations_url":"https://api.github.com/users/xdevs23/orgs","repos_url":"https://api.github.com/users/xdevs23/repos","events_url":"https://api.github.com/users/xdevs23/events{/privacy}","received_events_url":"https://api.github.com/users/xdevs23/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T13:08:29Z","updated_at":"2015-11-13T13:08:29Z","body":"[See here](https://github.com/balzathor/UltimateBrowserProject/blob/83f21a387e1b4b5243edd0eadcbaba17c2434e9c/app/src/main/java/io/github/UltimateBrowserProject/Unit/ViewUnit.java#L23v)\r\n\r\nMy screen resolution is 720x1280\r\nWidth is 720, Height is 1280\r\nThe window height is 1200, window width is 720, adjustHeight is 50, so status bar height is also 50.\r\n\r\n1200 + 50 = 1250 but not 1280, so there are 30 pixels missing.\r\n\r\nSee here:\r\n```java\r\n    public static boolean respectAdjustHeight = true;\r\n    private static int adjustHeightMultiplier = 1;\r\n    public static void bound(Context context, View view, boolean isFullScreen) {\r\n        int windowWidth = getWindowWidth(context);    // gives 720, which is correct\r\n        int windowHeight = getWindowHeight(context); // gives 1200\r\n        int adjustHeight = 0;\r\n        if (!isFullScreen && respectAdjustHeight)\r\n            adjustHeight += getStatusBarHeight(context) * adjustHeightMultiplier;  // gives 50\r\n      ...\r\n```\r\nThe log here (from logcat):\r\n```\r\nWindow height: 1200; Window width: 720; Adjust height: 50; status bar height: 50;widthSpec: 1073742544; heightSpec: 1073742974\r\n```\r\nis the result of\r\n```java\r\n        Logging.logt(String.format(\r\n                \"Window height: %s; Window width: %s; \"\r\n              + \"Adjust height: %s; status bar height: %s;\"\r\n              + \"widthSpec: %s; heightSpec: %s\",\r\n                windowHeight, windowWidth,\r\n                adjustHeight, getStatusBarHeight(context),\r\n                widthSpec, heightSpec\r\n        ));\r\n```\r\n\r\nThe status bar has 50 pixels in height but the navbar has 80 pixels in height and not 30...\r\nSo where do the 30 belong to?\r\n\r\n(Navbar - status bar = 30; 80 - 50 = 30, but I don't think that has anything to do with...)\r\n\r\nWe are not talking about dp (Density Pixels), these are real pixels....\r\n\r\nSee the screenshot:\r\n![scr13](https://cloud.githubusercontent.com/assets/6959245/11146506/40798f0e-8a0f-11e5-97f1-717562d36c03.png)\r\n"}}