forked from extern/egroupware
Add some CSS during column resize to indicate which columns are fixed and which columns will change when you resize.
This commit is contained in:
parent
bbc76fa4e1
commit
1c10588249
@ -387,6 +387,11 @@ var et2_dataview = Class.extend({
|
|||||||
.append(cont)
|
.append(cont)
|
||||||
.appendTo(this.headTr);
|
.appendTo(this.headTr);
|
||||||
|
|
||||||
|
if(this.columnMgr && this.columnMgr.columns[i])
|
||||||
|
{
|
||||||
|
column.addClass(this.columnMgr.columns[i].fixedWidth ? 'fixedWidth' : 'relativeWidth');
|
||||||
|
}
|
||||||
|
|
||||||
// make column resizable
|
// make column resizable
|
||||||
var enc_column = self.columnMgr.getColumnById(col.id);
|
var enc_column = self.columnMgr.getColumnById(col.id);
|
||||||
et2_dataview_makeResizeable(column, function(_w) {
|
et2_dataview_makeResizeable(column, function(_w) {
|
||||||
|
@ -53,6 +53,9 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Indicate resizing is in progress
|
||||||
|
$j(_outerElem).addClass('egwResizing');
|
||||||
|
|
||||||
// Reset the "didResize" flag
|
// Reset the "didResize" flag
|
||||||
didResize = false;
|
didResize = false;
|
||||||
|
|
||||||
@ -78,7 +81,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
.bind("mouseup", function() {
|
.bind("mouseup", function() {
|
||||||
stopResize();
|
stopResize(_outerElem);
|
||||||
|
|
||||||
// Reset text selection
|
// Reset text selection
|
||||||
_elem[0].onselectstart = null;
|
_elem[0].onselectstart = null;
|
||||||
@ -93,8 +96,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopResize()
|
function stopResize(_outerElem)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$j(_outerElem).removeClass('egwResizing');
|
||||||
if (helper != null)
|
if (helper != null)
|
||||||
{
|
{
|
||||||
helper.remove();
|
helper.remove();
|
||||||
|
@ -1149,6 +1149,13 @@ div.et2_progress > div {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 5px;
|
min-height: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For resizing (nextmatch columns)
|
||||||
|
*/
|
||||||
|
table.egwGridView_outer.egwResizing .fixedWidth {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
.egwResizeOverlay {
|
.egwResizeOverlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user