{"action":"opened","issue":{"url":"https://api.github.com/repos/feimosi/baguetteBox.js/issues/195","repository_url":"https://api.github.com/repos/feimosi/baguetteBox.js","labels_url":"https://api.github.com/repos/feimosi/baguetteBox.js/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/feimosi/baguetteBox.js/issues/195/comments","events_url":"https://api.github.com/repos/feimosi/baguetteBox.js/issues/195/events","html_url":"https://github.com/feimosi/baguetteBox.js/issues/195","id":337594403,"node_id":"MDU6SXNzdWUzMzc1OTQ0MDM=","number":195,"title":"position: fixed and height: 100% on android chrome","user":{"login":"czirkoszoltan","id":9961153,"node_id":"MDQ6VXNlcjk5NjExNTM=","avatar_url":"https://avatars3.githubusercontent.com/u/9961153?v=4","gravatar_id":"","url":"https://api.github.com/users/czirkoszoltan","html_url":"https://github.com/czirkoszoltan","followers_url":"https://api.github.com/users/czirkoszoltan/followers","following_url":"https://api.github.com/users/czirkoszoltan/following{/other_user}","gists_url":"https://api.github.com/users/czirkoszoltan/gists{/gist_id}","starred_url":"https://api.github.com/users/czirkoszoltan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czirkoszoltan/subscriptions","organizations_url":"https://api.github.com/users/czirkoszoltan/orgs","repos_url":"https://api.github.com/users/czirkoszoltan/repos","events_url":"https://api.github.com/users/czirkoszoltan/events{/privacy}","received_events_url":"https://api.github.com/users/czirkoszoltan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T16:59:34Z","updated_at":"2018-07-02T16:59:34Z","closed_at":null,"author_association":"NONE","body":"The current CSS rule for the overlay is:\r\n```\r\n#baguetteBox-overlay {\r\n  position: fixed;\r\n  top: 0;\r\n  left: 0;\r\n  width: 100%;\r\n  height: 100%;\r\n}\r\n```\r\nThis causes some problems on Android Chrome. When the overlay is open, and one scrolls the page up (ie. the page behind the overlay is still scrollable), the browser toolbar appears. This reduces the screen size, and unfortunately the Android version of Chrome resizes the fixed elements with a small delay. Therefore the size of the overlay is bigger than the screen for around 0.5 seconds, which will then cause the figcaption to overflow the bottom of the screen.\r\n\r\nA partial solution is this:\r\n```\r\n#baguetteBox-overlay {\r\n  position: fixed;\r\n  top: 0;\r\n  left: 0;\r\n  right: 0;\r\n  bottom: 0;\r\n}\r\n```\r\nThis helps to solve the problem, because the browser toolbar that is appearing when the user scrolls the page up modifies the top part of the screen. It still has some delay, however the position of the bottom part of the overlay is not modified, therefore the figcaption element (which is anchored to the bottom part of the overlay) will not move."}}
{"actor":{"display_login":"czirkoszoltan"}}