mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-19 12:28:38 +01:00
Fix relative columns width preference not saved as relative width
This commit is contained in:
parent
c10d926a54
commit
302e7c8d8c
@ -404,7 +404,8 @@ var et2_dataview = Class.extend({
|
|||||||
// Set to selected width
|
// Set to selected width
|
||||||
this.set_width(_w + "px");
|
this.set_width(_w + "px");
|
||||||
self.columnMgr.updated = true;
|
self.columnMgr.updated = true;
|
||||||
self.updateColumns();
|
// Just triggers recalculation
|
||||||
|
self.columnMgr.getColumnWidth(0);
|
||||||
|
|
||||||
// Set relative widths to match
|
// Set relative widths to match
|
||||||
var relative = self.columnMgr.totalWidth - self.columnMgr.totalFixed + _w;
|
var relative = self.columnMgr.totalWidth - self.columnMgr.totalFixed + _w;
|
||||||
@ -415,8 +416,8 @@ var et2_dataview = Class.extend({
|
|||||||
if(col == this || col.fixedWidth) continue;
|
if(col == this || col.fixedWidth) continue;
|
||||||
col.set_width(self.columns[i].width / relative);
|
col.set_width(self.columns[i].width / relative);
|
||||||
}
|
}
|
||||||
// Don't update now, or columns might change a little.
|
// Triggers column change callback, which saves
|
||||||
// Save it for next time.
|
self.updateColumns();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user