Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on iOS 10.3 #82

Open
starrychloe opened this issue Apr 25, 2017 · 1 comment
Open

Doesn't work on iOS 10.3 #82

starrychloe opened this issue Apr 25, 2017 · 1 comment

Comments

@starrychloe
Copy link

starrychloe commented Apr 25, 2017

This just doesn't work. It works on the desktop (or maybe it's just vh working normally), but the div is not resized on mobile Safari. I tried to wrap it in document.ready(), I tried force: true, nothing works.

$(document).ready( function() {
	console.log(window.innerHeight);
	console.log($('.jumbotron').css('height'));
	window.viewportUnitsBuggyfill.init({force: true});
	console.log(window.innerHeight);
	console.log($('.jumbotron').css('height'));
});

From the desktop:

550
550px
550
550px

Here is the CSS

  .jumbotron {
    height: 100vh;
    position: relative;
    background-color: initial;

I actually found a way to turn off Javascript in Safari, and the div was larger without it on! Still not 100% height, but this plugin is making it smaller.

v0.6.1

@rodneyrehm
Copy link
Owner

but the div is not resized on mobile Safari.

what exactly do you mean by this?

can you reproduce your problem in a https://jsbin.com or https://jsfiddle.net?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants