mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +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;
|
||||
this.set_width(_w / relative);
|
||||
for (var i = 0; i < self.columnMgr.columnCount(); i++) {
|
||||
var col = self.columnMgr.getColumnById(i);
|
||||
if (col == this || col.fixedWidth)
|
||||
var col = self.columnMgr.getColumnById('col_' + i);
|
||||
if (!col || col == this || col.fixedWidth)
|
||||
continue;
|
||||
col.set_width(self.columnMgr.getColumnWidth(i) / relative);
|
||||
}
|
||||
|
@ -479,8 +479,8 @@ export class et2_dataview
|
||||
this.set_width(_w / relative);
|
||||
for(var i = 0; i < self.columnMgr.columnCount(); i++)
|
||||
{
|
||||
var col = self.columnMgr.getColumnById(i);
|
||||
if(col == this || col.fixedWidth) continue;
|
||||
var col = self.columnMgr.getColumnById('col_'+i);
|
||||
if(!col || col == this || col.fixedWidth) continue;
|
||||
col.set_width(self.columnMgr.getColumnWidth(i) / relative);
|
||||
}
|
||||
// Triggers column change callback, which saves
|
||||
|
Loading…
Reference in New Issue
Block a user