Javascript 制表器:groupToggleElement断开布局

Javascript 制表器:groupToggleElement断开布局,javascript,tabulator,Javascript,Tabulator,目前,在制表器中制作表格工作正常,但是当我添加“groupToggleElement:“header”时,它会破坏制表器的布局选项 我不确定我是否做错了什么,或者这是一个bug table = new Tabulator("#myTable", { pagination: "local", paginationSize: 30, movableColumns: true, resizableRows: true,

目前,在制表器中制作表格工作正常,但是当我添加“groupToggleElement:“header”时,它会破坏制表器的布局选项

我不确定我是否做错了什么,或者这是一个bug


 table = new Tabulator("#myTable", {
        pagination: "local",
        paginationSize: 30,
        movableColumns: true,
        resizableRows: true,
        initialSort: [
            { column: "FullName", dir: "asc" },
        ],
        groupBy: "FullName",
        groupStartOpen: false,
        groupToggleElement: "header",
        layout: "fitDataFill",
        layoutColumnsOnNewData: true,
        columns: [
            { title: "Name", field: "FullName", sorter: "string", align: "center" },
            { title: "Activation Key", field: "ActivationKey", sorter: "string", align: "center" },
            {
                title: "Expiry Date", field: "SubscriptionExpiryDate", sorter: "string", align: "center", formatter: "datetime", formatterParams: {
                    inputFormat: "YYYY-MM-DDT hh:mm:ss",
                    outputFormat: "DD/MMM/YYYY",
                    invalidPlaceholder: "No Expiry Date",
                }
            },
            { title: "Device Points", field: "Seats", sorter: "number", align: "center" }
        ]
    });

    $.ajax({
        url: "../API/Analytics/GetCustomerData",
        type: "get",
        async: true,
        success: function (data) {
            table.setData(data.dataObject);
        },
        error: function () {
            // error thing here
        },
        timeout: 10000
    });


召唤

table.redraw(true)
在更改时重新绘制表格


找到了原因,但不是那样。当我开始关闭组而不是打开组时,它实际上不会调整大小以适应元素。