Nirjonadda
Customer
Sticky sidebar are not working correctly when more Widgets than node.

I'm not understanding still, the sidebar sticks and scrolls with the content. If there's no content to scroll next too as in there's a really short content area no sticky sidebar will happen.
the sidebar is longer than the content.
What is the point of sticking a sidebar when it’s twice as long as the content?
.p-body-pageContent {
min-height: 7000px;
}
@responsiveWidePlus: calc(@xf-responsiveWide + 1);
@media (min-width: @responsiveWidePlus)
{
.p-body-main.p-body-main--withSidebar
{
display: flex;
align-items: flex-start;
.p-body-content
{
flex: 1 1 auto;
display: block;
width: calc(100% - @xf-xbSidebarWidth);
}
.p-body-sidebar
{
position: sticky;
top: 60px;
}
}
}
Lastly if you want to approach it the way your other style does, disable our sticky sidebar and add this to your extra.less:
.node-body > * {
padding-top: 3px !important;
padding-bottom: 3px !important;
}