mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Fix column could not be found due to wrong IDs used
This commit is contained in:
parent
d0eed9b7a5
commit
8020464dde
@ -333,8 +333,8 @@ var et2_dataview = /** @class */ (function () {
|
|||||||
var relative = self.columnMgr.totalWidth - self.columnMgr.totalFixed + _w;
|
var relative = self.columnMgr.totalWidth - self.columnMgr.totalFixed + _w;
|
||||||
this.set_width(_w / relative);
|
this.set_width(_w / relative);
|
||||||
for (var i = 0; i < self.columnMgr.columnCount(); i++) {
|
for (var i = 0; i < self.columnMgr.columnCount(); i++) {
|
||||||
var col = self.columnMgr.getColumnById(i);
|
var col = self.columnMgr.getColumnById('col_' + i);
|
||||||
if (col == this || col.fixedWidth)
|
if (!col || col == this || col.fixedWidth)
|
||||||
continue;
|
continue;
|
||||||
col.set_width(self.columnMgr.getColumnWidth(i) / relative);
|
col.set_width(self.columnMgr.getColumnWidth(i) / relative);
|
||||||
}
|
}
|
||||||
|
@ -479,8 +479,8 @@ export class et2_dataview
|
|||||||
this.set_width(_w / relative);
|
this.set_width(_w / relative);
|
||||||
for(var i = 0; i < self.columnMgr.columnCount(); i++)
|
for(var i = 0; i < self.columnMgr.columnCount(); i++)
|
||||||
{
|
{
|
||||||
var col = self.columnMgr.getColumnById(i);
|
var col = self.columnMgr.getColumnById('col_'+i);
|
||||||
if(col == this || col.fixedWidth) continue;
|
if(!col || col == this || col.fixedWidth) continue;
|
||||||
col.set_width(self.columnMgr.getColumnWidth(i) / relative);
|
col.set_width(self.columnMgr.getColumnWidth(i) / relative);
|
||||||
}
|
}
|
||||||
// Triggers column change callback, which saves
|
// Triggers column change callback, which saves
|
||||||
|
Loading…
Reference in New Issue
Block a user