Twenty Seventeen: Fix smooth scrolling skip link

The link was scrolling too far. The main problem was that the `menuTop` variable lost it's initial definition of `0`, so all future subtractions were failing.

Props tywayne.

Fixes #38448.

Built from https://develop.svn.wordpress.org/trunk@38886


git-svn-id: http://core.svn.wordpress.org/trunk@38829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
David A. Kennedy 2016-10-24 17:59:47 +00:00
parent bb91701a02
commit 5452a6a21d
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
idealNavHeight,
navIsNotTooTall,
headerOffset,
menuTop,
menuTop = 0,
resizeTimer;
/**
@ -149,7 +149,7 @@
* 'Scroll Down' arrow in menu area
*/
if ( $( 'body' ).hasClass( 'admin-bar' ) ) {
menuTop = -32;
menuTop -= 32;
}
if ( $( 'body' ).hasClass( 'blog' ) ) {
menuTop -= 30; // The div for latest posts has no space above content, add some to account for this

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38885';
$wp_version = '4.7-alpha-38886';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.