浏览代码

table column width should be set as minWidth to be noticed (#2300)

resolves #2286

Co-authored-by: Fred Lefévère-Laoide <Fred.Lefevere-Laoide@Taipy.io>
Fred Lefévère-Laoide 5 月之前
父节点
当前提交
56a0d5e243
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frontend/taipy-gui/src/components/Taipy/PaginatedTable.tsx

+ 1 - 1
frontend/taipy-gui/src/components/Taipy/PaginatedTable.tsx

@@ -524,7 +524,7 @@ const PaginatedTable = (props: TaipyPaginatedTableProps) => {
                                             sortDirection={orderBy === columns[col].dfid && order}
                                             sx={
                                                 columns[col].width
-                                                    ? { width: columns[col].width }
+                                                    ? { minWidth: columns[col].width }
                                                     : nbWidth
                                                     ? { minWidth: `${100 / nbWidth}%` }
                                                     : undefined