Changeset 46310
- Timestamp:
- 09/25/2019 10:11:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/js/functions.js
r46308 r46310 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 }
Note: See TracChangeset
for help on using the changeset viewer.