Skip to content

Instantly share code, notes, and snippets.

@matiaskorhonen
Created December 10, 2014 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matiaskorhonen/eabf013b9e1e37629a25 to your computer and use it in GitHub Desktop.
Save matiaskorhonen/eabf013b9e1e37629a25 to your computer and use it in GitHub Desktop.
iOS 7 position: fixed bug workaround
$(function () {
$(document).on('open.fndtn.reveal', '[data-reveal]', function () {
$modal = $(this);
$modal.find(".row").addClass("iosfix");
});
$(document).on('opened.fndtn.reveal', '[data-reveal]', function () {
$modal = $(this);
setTimeout(function() {
$modal.find(".row").removeClass("iosfix")
}, 500);
});
});
.iosfix {
height: 101%;
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment