From e69f4d1af6180f95d22f52e735f1f716b28de45f Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Fri, 27 Dec 2013 16:20:55 +0100 Subject: [PATCH] [FIX] fixes a rendering bug which happened when the rowspan (or colspan) attributes were set to 0. Now, it is always set to a value >= 1 (addon web_graph) bzr revid: ged@openerp.com-20131227152055-77fvsc27mzs0x5t9 --- addons/web_graph/static/src/js/graph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index ffc94e6dd84..80b7eb07d6c 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -399,8 +399,8 @@ instance.web_graph.Graph = instance.web.Widget.extend({ make_border_cell: function (colspan, rowspan) { return $('').addClass('graph_border') - .attr('colspan', colspan) - .attr('rowspan', rowspan); + .attr('colspan', (colspan) ? colspan : 1) + .attr('rowspan', (rowspan) ? rowspan : 1); }, make_header_title: function (header) {