[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
This commit is contained in:
Gery Debongnie 2013-12-27 16:20:55 +01:00
parent fb63eb63ed
commit e69f4d1af6
1 changed files with 2 additions and 2 deletions

View File

@ -399,8 +399,8 @@ instance.web_graph.Graph = instance.web.Widget.extend({
make_border_cell: function (colspan, rowspan) {
return $('<td></td>').addClass('graph_border')
.attr('colspan', colspan)
.attr('rowspan', rowspan);
.attr('colspan', (colspan) ? colspan : 1)
.attr('rowspan', (rowspan) ? rowspan : 1);
},
make_header_title: function (header) {