Nm resize fix:

- Fix dataview grid resize not taking care of category color border
- Fix Category borders make headers misaligned
This commit is contained in:
Hadi Nategh
2016-05-11 16:33:54 +00:00
parent 16bf89faa6
commit d290485058
13 changed files with 33 additions and 7 deletions

View File

@ -163,6 +163,9 @@ var et2_dataview = (function(){ "use strict"; return Class.extend({
{
this.width = _w;
// 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());
// Rebuild the column stylesheets
this.columnMgr.setTotalWidth(_w - this.scrollbarWidth);
this._updateColumns();