From 2ffcdf5dc930d62967f9d53d4104f91f69e5e984 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 18 May 2016 13:56:29 -0600 Subject: [PATCH] Also take grid border width into account - should help with nm width in Firefox. See d2904850589c7f16431dc84fffd85512779638d4 --- api/js/etemplate/et2_dataview.js | 3 +++ 1 file changed, 3 insertions(+) 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());