diff --git a/api/js/etemplate/et2_dataview.js b/api/js/etemplate/et2_dataview.js index 8ec3364617..3d467df16f 100644 --- a/api/js/etemplate/et2_dataview.js +++ b/api/js/etemplate/et2_dataview.js @@ -163,6 +163,9 @@ var et2_dataview = (function(){ "use strict"; return Class.extend({ { this.width = _w; + // Take grid border width into account + _w -= (this.table.outerWidth(true) - this.table.innerWidth()); + // Take grid header border's width into account. eg. category colors may add extra pixel into width _w = _w - (this.thead.find('tr').outerWidth() - this.thead.find('tr').innerWidth());