Demo.Web/wwwroot/js/page/themesettings.js
// Resize detached sidebar vertically when bottom reached
Resize detached sidebar vertically when bottom reached
Resize detached sidebar vertically when bottom reached
function resizeDetached() {
        $(window).on('load scroll', function () {
            if ($(window).scrollTop() > $(document).height() - $(window).height() - 60) {
                $('.sidebar-detached').addClass('fixed-sidebar-space');
                resizeScroll();
            }
            else {
                $('.sidebar-detached').removeClass('fixed-sidebar-space');
                resizeScroll();
            }
        });
    }
function resizeDetached ( ) { $ ( window ) . on ( 'load scroll' , function ( ) { if ( $ ( window ) . scrollTop ( ) > $ ( document ) . height ( ) - $ ( window ) . height ( ) - 60 ) { $ ( '.sidebar-detached' ) . addClass ( 'fixed-sidebar-space' ) ; resizeScroll ( ) ; } else { $ ( '.sidebar-detached' ) . removeClass ( 'fixed-sidebar-space' ) ; resizeScroll ( ) ; } } ) ; }
Resize detached sidebar vertically when bottom reached
Resize detached sidebar vertically when bottom reached