fix for column autoresize on dblclick
This commit is contained in:
parent
c496ec3abb
commit
8cc347d93e
|
@ -6440,7 +6440,6 @@ requires
|
|||
|
||||
$.extend(self, {
|
||||
columnPositions: [],
|
||||
columnWidths: [],
|
||||
itemHeight: 16,
|
||||
page: 0,
|
||||
pageLength: 100,
|
||||
|
@ -6451,6 +6450,9 @@ requires
|
|||
})
|
||||
});
|
||||
$.extend(self, {
|
||||
columnWidths: $.map(self.visibleColumns, function(v, i) {
|
||||
return v.width;
|
||||
}),
|
||||
pageHeight: self.options.pageLength * self.itemHeight
|
||||
});
|
||||
|
||||
|
@ -6576,14 +6578,12 @@ requires
|
|||
function constructHead() {
|
||||
that.$titles = [];
|
||||
self.columnPositions = [];
|
||||
self.columnWidths = [];
|
||||
$.each(self.visibleColumns, function(i, v) {
|
||||
var $order, $resize, $left, $center, $right, timeout = 0;
|
||||
self.columnWidths[i] = v.width;
|
||||
that.$titles[i] = $('<div>')
|
||||
.addClass('OxTitle OxColumn' + Ox.toTitleCase(v.id))
|
||||
.css({
|
||||
width: (v.width - 9) + 'px',
|
||||
width: (self.columnWidths[i] - 9) + 'px',
|
||||
textAlign: v.align
|
||||
})
|
||||
.html(v.title)
|
||||
|
@ -6806,7 +6806,6 @@ requires
|
|||
function resizeColumn(id, width) {
|
||||
var i = getColumnIndexById(id),
|
||||
pos = getColumnPositionById(id);
|
||||
self.visibleColumns[pos].width = width;
|
||||
self.columnWidths[pos] = width;
|
||||
that.$head.$content.css({
|
||||
width: (Ox.sum(self.columnWidths) + 2) + 'px'
|
||||
|
|
Loading…
Reference in New Issue
Block a user