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

[PR] Additional work on mobile scrolling behavior #334

Merged
merged 9 commits into from Mar 16, 2016

Maintain `min-height` of glue and spine only on non-mobile

  • Loading branch information...
jeremyfelt committed Mar 16, 2016
commit 31aab68b90a8345a65b1baad5efbdd380e4aa8d6
Copy path View file
@@ -182,12 +182,12 @@
viewport_ht = $( window ).height();
if ( $( ".spine-header" ).height() > 50 ) {
if ( ! self.is_mobile_view() ) {
glue.css( "min-height", viewport_ht );
spine.css( "min-height", viewport_ht );
} else {
glue.css( "min-height", viewport_ht - 50 );
spine.css( "min-height", viewport_ht - 50 );
glue.css( "min-height", '' );
spine.css( "min-height", '' );
}
$( document ).trigger( "scroll" );
ProTip! Use n and p to navigate between commits in a pull request.