mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-10 00:37:54 +02:00
allow to resize all columns (no need to leave out the last one) and use pageX instead of clientX to take into account an optional scrollbar, if grid is to wide
This commit is contained in:
@ -378,15 +378,13 @@ var et2_dataview = Class.extend({
|
||||
.append(cont)
|
||||
.appendTo(this.headTr);
|
||||
|
||||
// Every column but last can be resized // TODO: This won't work as the last column could be hidden
|
||||
if(i < this.columns.length-1) {
|
||||
var enc_column = self.columnMgr.getColumnById(col.id);
|
||||
et2_dataview_makeResizeable(column, function(_w) {
|
||||
this.set_width(_w + "px");
|
||||
self.columnMgr.updated = true;
|
||||
self.updateColumns();
|
||||
}, enc_column);
|
||||
}
|
||||
// make column resizable
|
||||
var enc_column = self.columnMgr.getColumnById(col.id);
|
||||
et2_dataview_makeResizeable(column, function(_w) {
|
||||
this.set_width(_w + "px");
|
||||
self.columnMgr.updated = true;
|
||||
self.updateColumns();
|
||||
}, enc_column);
|
||||
|
||||
// Store both nodes in the columnNodes array
|
||||
this.columnNodes.push({
|
||||
|
Reference in New Issue
Block a user