From 302e7c8d8c5cd2ec22d0f04e9ed4ffcc2e78a110 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 7 Oct 2014 23:04:53 +0000 Subject: [PATCH] Fix relative columns width preference not saved as relative width --- etemplate/js/et2_dataview.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etemplate/js/et2_dataview.js b/etemplate/js/et2_dataview.js index c92f7c0b19..ba5da99e8c 100644 --- a/etemplate/js/et2_dataview.js +++ b/etemplate/js/et2_dataview.js @@ -404,7 +404,8 @@ var et2_dataview = Class.extend({ // Set to selected width this.set_width(_w + "px"); self.columnMgr.updated = true; - self.updateColumns(); + // Just triggers recalculation + self.columnMgr.getColumnWidth(0); // Set relative widths to match var relative = self.columnMgr.totalWidth - self.columnMgr.totalFixed + _w; @@ -415,8 +416,8 @@ var et2_dataview = Class.extend({ if(col == this || col.fixedWidth) continue; col.set_width(self.columns[i].width / relative); } - // Don't update now, or columns might change a little. - // Save it for next time. + // Triggers column change callback, which saves + self.updateColumns(); } else {