summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/bootstrap/css/bootstrap-theme.css.map
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-08-03 17:24:27 +0200
committerqsm-odoo <qsm@odoo.com>2016-08-04 11:04:12 +0200
commit566e0a27063bef95b0f99f49d9631f2de97dfcf5 (patch)
tree43eb0628453166b8ed6f0288d269c7eb9de6e3fd /addons/web/static/lib/bootstrap/css/bootstrap-theme.css.map
parentefdce58913fde986f0f5ea7a279c83fcd505d3db (diff)
[FIX] website_quote: set correct fixed sidebar width
The sidebar on the left of the quotation previews was placed with position fixed in a col-md-3. Position fixed elements have their width computed according to the window dimensions which is why it cannot be 100% to fit the col-md-3. To achieve that, the old solution was to set the width in pixel according to the viewport dimension (and the size a col-md-3 has in each of this dimension). This was too easily breakable. Indeed in the avantgarde theme, the .container is set to smaller dimensions. So the col-md-3 is smaller too and then the fixed width sidebar overflows. To achieve the desired behaviour, javascript is needed. In CSS, the position is set to "relative" and the width to "100%" so that the sidebar fits the col-md-3 width no matter what. Then on page load and on window resize, the sidebar is set to position "fixed" and to a px-based width which equals its current and default 100%-width.
Diffstat (limited to 'addons/web/static/lib/bootstrap/css/bootstrap-theme.css.map')
0 files changed, 0 insertions, 0 deletions