Ticket #37536: 37536.3.diff
File 37536.3.diff, 837 bytes (added by , 6 years ago) |
---|
-
src/wp-content/themes/twentyfifteen/js/functions.js
100 100 sidebarHeight = $sidebar.height(), 101 101 bodyHeight = $body.height(); 102 102 103 if( 955 < $window.width() 104 && bodyHeight > sidebarHeight 105 && ( windowPos + windowHeight ) >= sidebarHeight ) { 106 103 if( 955 < $window.width() && bodyHeight > sidebarHeight && ( windowPos + windowHeight ) >= sidebarHeight ) { 107 104 $sidebar.css({ 108 position: "fixed",105 position: 'fixed', 109 106 bottom: sidebarHeight > windowHeight ? 0 : 'auto' 110 107 }); 111 108 } else { 112 $sidebar.css('position', 'relative') 109 $sidebar.css('position', 'relative'); 113 110 } 114 111 } 115 112