From d5d93474de7f7f9b0875b533772d3a64047124cb Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Mon, 8 Apr 2019 09:09:32 +0000 Subject: [PATCH] [FIX] account, portal, sale: odd sidebar on IE11 Open a quotation from the portal using IE11. The sidebar is rendered as it did not have any width. What we are trying to achieve on large screens is to create a sidebar with a fix width the size of its children and to let the rest of the content (right to the sidebar) expands. On small screens we want to invert the direction from left-to-right to up-to-bottom. The classes `col-12`, `col-lg` and `flex-lg-grow-0` are used to fulfill that purpose. The problem is due to the rule `flex-grow: 0 !important` applied by the selector `.flex-lg-grow-0` on the sidebar. On Chrome/Firefox the dom element takes the width of his children as minimal width, the `flex-grow: 0` does not shrink the element below that minimal width. IE11 does not set a minimal width based on the child elements of the node, the width is equal to 0 and the `flex-grow: 0` forbid it from growing. The solution is to replace the said classes by the `col-lg-auto` class that does exactly what we want and is cross-browser. opw-1944188 opw-1935087 closes odoo/odoo#32484 Signed-off-by: Nicolas Martinelli (nim) --- addons/account/views/account_portal_templates.xml | 2 +- addons/portal/views/portal_templates.xml | 2 +- addons/sale/views/sale_portal_templates.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/views/account_portal_templates.xml b/addons/account/views/account_portal_templates.xml index 858a7cf58df..30303fdb6ee 100644 --- a/addons/account/views/account_portal_templates.xml +++ b/addons/account/views/account_portal_templates.xml @@ -83,7 +83,7 @@
- +

diff --git a/addons/portal/views/portal_templates.xml b/addons/portal/views/portal_templates.xml index cc64dc355d2..4059e2641fb 100644 --- a/addons/portal/views/portal_templates.xml +++ b/addons/portal/views/portal_templates.xml @@ -174,7 +174,7 @@