minor
This commit is contained in:
parent
330aa5f52a
commit
664865d024
@ -3214,16 +3214,9 @@ var Style = function () {
|
|||||||
|
|
||||||
var wrapperWidth = _dom2.default.style(this.instance.datatableWrapper, 'width');
|
var wrapperWidth = _dom2.default.style(this.instance.datatableWrapper, 'width');
|
||||||
var headerWidth = _dom2.default.style(this.header, 'width');
|
var headerWidth = _dom2.default.style(this.header, 'width');
|
||||||
|
|
||||||
// if (headerWidth >= wrapperWidth) {
|
|
||||||
// // don't resize, horizontal scroll takes place
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
|
|
||||||
var resizableColumns = this.datamanager.getColumns().filter(function (col) {
|
var resizableColumns = this.datamanager.getColumns().filter(function (col) {
|
||||||
return col.resizable;
|
return col.resizable;
|
||||||
});
|
});
|
||||||
|
|
||||||
var deltaWidth = (wrapperWidth - headerWidth) / resizableColumns.length;
|
var deltaWidth = (wrapperWidth - headerWidth) / resizableColumns.length;
|
||||||
|
|
||||||
resizableColumns.map(function (col) {
|
resizableColumns.map(function (col) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -145,14 +145,7 @@ export default class Style {
|
|||||||
|
|
||||||
const wrapperWidth = $.style(this.instance.datatableWrapper, 'width');
|
const wrapperWidth = $.style(this.instance.datatableWrapper, 'width');
|
||||||
const headerWidth = $.style(this.header, 'width');
|
const headerWidth = $.style(this.header, 'width');
|
||||||
|
|
||||||
// if (headerWidth >= wrapperWidth) {
|
|
||||||
// // don't resize, horizontal scroll takes place
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
|
|
||||||
const resizableColumns = this.datamanager.getColumns().filter(col => col.resizable);
|
const resizableColumns = this.datamanager.getColumns().filter(col => col.resizable);
|
||||||
|
|
||||||
const deltaWidth = (wrapperWidth - headerWidth) / resizableColumns.length;
|
const deltaWidth = (wrapperWidth - headerWidth) / resizableColumns.length;
|
||||||
|
|
||||||
resizableColumns.map(col => {
|
resizableColumns.map(col => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user