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:
parent
bb91701a02
commit
5452a6a21d
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue