[IMP] website_quote: use affix to block the sidebar when scrolling

Sometimes, the sidebar on quotation previews can overflow the footer
if the window height is too small. To prevent that, the position of
the sidebar is blocked before overflowing, thanks to affix.
This commit is contained in:
qsm-odoo
2016-08-04 17:33:11 +02:00
parent dbcc11664a
commit 3363facfe4
@@ -175,6 +175,12 @@ if(!$('.o_website_quote').length) {
nav_menu.setElement($('[data-id="quote_sidebar"]'));
nav_menu.start($('body[data-target=".navspy"]'));
$(".o_website_quote .bs-sidebar").affix({
offset: {
top: 0,
bottom: $('body').height() - $('#wrapwrap').outerHeight() + $("footer").outerHeight(),
},
});
});
odoo.define('website_quote.payment_method', function (require) {