From 8a285e6a6269c9f2834081caede64cdbb9934dd4 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 10 Apr 2015 13:27:11 +0200 Subject: [PATCH] [FIX] css: ie9 specific fixes Create a new stylesheet for IE9 and less custom css. The issue #6198 and #6201 is present in IE9 since a div with height 100% inside a table-cell (i.e: td tag) element only take the minimum height possible for the content. For issue #6198: in IE9 a kanban tile could not be moved to an empty kanban, this fix sets a minimum height for a empty column (80px, the size of two empty tiles) so now a tile can be moved in the 80px in the top of the column. For issue #6201: graphs took the minimum height in IE9, this fix set a fixed height to improve the situation. For issue #6200: in IE9, the list view could wrongly not go the next line even if its width is 100%. For the given case, the display CSS property of these listview is set to value "block". opw-632415 opw-632417 opw-632416 --- addons/web/static/src/css/ie.css | 14 ++++++++++++++ addons/web/views/webclient_templates.xml | 1 + 2 files changed, 15 insertions(+) create mode 100644 addons/web/static/src/css/ie.css diff --git a/addons/web/static/src/css/ie.css b/addons/web/static/src/css/ie.css new file mode 100644 index 00000000000..4f5b2c85db7 --- /dev/null +++ b/addons/web/static/src/css/ie.css @@ -0,0 +1,14 @@ +/** base */ +.openerp .oe_form label + .oe_form_field.oe_form_field_one2many { + display: block; +} + +/** web_graph */ +.graph_main_content.graph_chart_mode > div > svg { + min-height: 521px; +} + +/** web_kanban */ +.openerp .oe_kanban_column_cards { + min-height: 80px; +} diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index a066e1e4a24..435287ea162 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -199,6 +199,7 @@ + <!--[if lte IE 9]> <![endif]-->