From b7e2f5be8b060e4e048138441be039cccb705fe1 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Tue, 23 Dec 2014 10:32:27 +0100 Subject: [PATCH] [FIX] web: base.css: fallback for browsers without calc support see https://developer.mozilla.org/en-US/docs/Web/CSS/calc --- addons/web/static/src/css/base.css | 2 ++ addons/web/static/src/css/base.sass | 2 ++ 2 files changed, 4 insertions(+) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 236b038bab8..1b816cd7945 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -86,11 +86,13 @@ */ } .openerp.openerp_webclient_container { + height: 95%; height: calc(100% - 34px); overflow: auto; } @media (max-width: 768px) { .openerp.openerp_webclient_container { + height: 90%; height: calc(100% - 52px); } } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 7343d1e0406..2dc158f9e33 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -201,10 +201,12 @@ $sheet-padding: 16px font-size: 13px background: white &.openerp_webclient_container + height: 95% // fallback for browsers without support for calc() height: calc(100% - 34px) overflow: auto @media (max-width: 768px) &.openerp_webclient_container + height: 90% // fallback for browsers without support for calc() height: calc(100% - 52px) // }}} //Placeholder style{{{