Freezing Side bar while scrolling

If you have this issue, you should tell us first, then we will know where the actual issue is.

try it.

frappe.ui.form.on('Purchase Invoice', {
    onload_post_render: function(frm) {
        if (window.innerWidth > 992) {
            var targetDiv = $(".col-lg-2.layout-side-section");
            targetDiv.css({
                position: 'fixed',
                zIndex: '1020',
            });
    
            $('.layout-main-section-wrapper').css({
                marginLeft: "16.70%"
            });
        }
    }
});

Issue is in the margin-left because it set based on the targetDiv so we fixed it.

We checked the multiple times but we don’t have the issue, but you were right when that issue came up earlier.

Now if the issue comes you are out of luck :sweat_smile: