ソースを参照

fix(AdvancedTable): Calculated column width could be larger than maxWidth

Owen Diffey 3 年 前
コミット
d4cead012f
1 ファイル変更6 行追加3 行削除
  1. 6 3
      frontend/src/components/AdvancedTable.vue

+ 6 - 3
frontend/src/components/AdvancedTable.vue

@@ -994,9 +994,12 @@ export default {
 					} else {
 						// eslint-disable-next-line no-param-reassign
 						orderedColumn.width = orderedColumn.calculatedWidth =
-							Math.max(
-								orderedColumn.minWidth || 100,
-								calculatedWidth
+							Math.min(
+								Math.max(
+									orderedColumn.minWidth || 100,
+									calculatedWidth
+								),
+								orderedColumn.maxWidth || 1000
 							);
 					}
 				}