4
I have a Bootstrap layout with a right sidebar that accompanies the scroll, inside the div[role=main]
.
My layout:
My code:
<header class="container">
<div class="row">
<div class="col-sm-12">Header</div>
</div>
</header>
<div role="main" class="container">
<div class="row">
<div class="col-sm-8 col-lg-9">
Main Content
</div>
<aside class="col-sm-4 col-lg-3">
<section class="budget-summary">
<h2 class="text-center">Resumo</h2>
</section>
</aside>
</div>
</div>
<footer>
<div class="row">
<div class="col-sm-12">Footer</div>
</div>
</footer>
$('.budget-summary').affix({
offset: {
top: 0,
bottom: function () {
return (this.bottom = $('footer#page-footer').outerHeight(true));
}
}
});
however the content of the sidebar is dynamic (grows and decreases). which sometimes causes the content of the sidebar not to be shown in full, as exemplified by the following figure:
there’s a way around this?
Has this question been solved? Or do you still need help with it?
– Miguel Angelo
it wasn’t. if you can help, I appreciate.
– Miguel Borges