Ticket #40492: 40492.2.diff
File 40492.2.diff, 807 bytes (added by , 3 years ago) |
---|
-
src/wp-content/themes/twentyfifteen/js/functions.js
99 99 var windowPos = $window.scrollTop(), 100 100 windowHeight = $window.height(), 101 101 sidebarHeight = $sidebar.height(), 102 bodyHeight = $body.height();102 pageHeight = $( '#page' ).height(); 103 103 104 if( 955 < $window.width() && bodyHeight > sidebarHeight && ( windowPos + windowHeight ) >= sidebarHeight ) {104 if( 955 < $window.width() && pageHeight > sidebarHeight && ( windowPos + windowHeight ) >= sidebarHeight ) { 105 105 $sidebar.css({ 106 106 position: 'fixed', 107 107 bottom: sidebarHeight > windowHeight ? 0 : 'auto'