enter image description here above image show that how tabulator table width is shrinking

but it should show like below image it should show like this here table is shrinking at first time loading like in which is there in first image and when i drag it is coming but i want it should adjust properly

  this.wormGearTabulatorHeaders = [
            {
                title: "Type", field: "name", headerHozAlign: "left", width: "55%", headerSort: false, hozAlign: "left", editable: false

            },
            {
                title: "Value", headerHozAlign: "center", width: "45%",
                columns: [
                    {
                        title: "Min", field: "minValue",cellEdited: validateWormGear,editable:editCheck, editor: "input", headerSort: false, width: "15%", hozAlign: "right", formatter:
                            decimalFormatter
                        , headerHozAlign: "right"
                        , editorParams: {
                            formatter: decimalFormatter
                        },
                    },
                    {
                        title: "Nom", field: "nomValue",cellEdited: validateWormGear, editor: "input", headerSort: false, width: "15%", hozAlign: "right", formatter: decimalFormatter, headerHozAlign: "right"

                        , editorParams: {
                            formatter: decimalFormatter
                        }
                    },
                    {
                        title: "Max", field: "maxValue",cellEdited: validateWormGear,editable:editCheck, editor: "input", headerSort: false, width: "15%", hozAlign: "right", formatter: decimalFormatter, headerHozAlign: "right"

                        , editorParams: {
                            formatter: decimalFormatter
                        }
                    },
                ],
            },

        ];
        this.wormGearTabulatorTable = new Tabulator("#wormGearTabulatorTable", {
            maxHeight: "100%",
            maxwidth: "100%",
            data: wormGearTableData,
            layout: "fitDataTable",
            headerSort: false,
            columns: this.wormGearTabulatorHeaders,
        })

its html code for same table 
                                        <div id="wormGearTabulatorTable" style="max-height: 100%;max-width: 100%;position: relative;"></div>

推荐答案

您可以try 将默认宽度设置为100%吗?这可能会解决您的问题!

另一件事也可以调整为100vw,但这取决于表格是否显示整个屏幕的宽度!

<div id="wormGearTabulatorTable" style="max-height: 100%;width: 100%;position: relative;"></div>

Javascript相关问答推荐

从PWA中的内部存储读取文件

Chart.js V4切换图表中的每个条,同时每个条下有不同的标签.怎么做?

调用removeEvents不起作用

如何在Angular中插入动态组件

MongoDB中的引用

为什么这个JS模块在TypeScript中使用默认属性导入?""

编辑文本无响应.onClick(扩展脚本)

对路由DOM嵌套路由作出react

如何将数据块添加到d3力有向图中?

Reaction-SWR-无更新组件

如何为仅有数据可用的点显示X轴标签?

使用Reaction窗体挂钩注册日历组件

Reaction即使在重新呈现后也会在方法内部保留局部值

是否设置以JavaScript为背景的画布元素?

如何使用Reaction路由导航测试挂钩?

在单击按钮时生成多个表单时的处理状态

在Puppeteer中使用promise进行日志(log)记录时出现TargetCloseError

使用props 将VUE 3组件导入JS文件

如何使pdf.js上的文本呈现为可选?

在ReactJS上挂载组件时获得多个身份验证请求