Ticket #30366: 30366.6.patch
File 30366.6.patch, 861 bytes (added by , 10 years ago) |
---|
-
src/wp-content/themes/twentyfifteen/js/functions.js
74 74 topOffset = ( $sidebar.offset().top > 0 ) ? $sidebar.offset().top - adminbarOffset : 0; 75 75 $sidebar.attr( 'style', 'top: ' + topOffset + 'px;' ); 76 76 } else if ( ! bottom && windowPos + windowHeight > sidebarHeight + $sidebar.offset().top ) { 77 bottom = true; 78 $sidebar.attr( 'style', 'position: fixed;bottom: 0;' ); 77 if ( $document.height() != sidebarHeight ){ 78 bottom = true; 79 $sidebar.attr( 'style', 'position: fixed;bottom: 0;' ); 80 } 79 81 } 80 82 } else if ( windowPos < lastWindowPos ) { 81 83 if ( bottom ) {