@shival99/z-ui 2.0.86 → 2.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1116,10 +1116,14 @@ function columnConfigToColumnDef(config) {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
+
// When size is derived from config.width, cap minSize so getSize() == size (not clamped up).
|
|
1120
|
+
const resolvedMinSize = size !== undefined && (config.minSize ?? Z_DEFAULT_COLUMN_MIN_SIZE) > size
|
|
1121
|
+
? size
|
|
1122
|
+
: config.minSize ?? Z_DEFAULT_COLUMN_MIN_SIZE;
|
|
1119
1123
|
const columnDef = {
|
|
1120
1124
|
id: config.id,
|
|
1121
1125
|
size: size,
|
|
1122
|
-
minSize:
|
|
1126
|
+
minSize: resolvedMinSize,
|
|
1123
1127
|
maxSize: config.maxSize,
|
|
1124
1128
|
enableSorting: sortConfig?.enabled ?? false,
|
|
1125
1129
|
enableColumnFilter: filterConfig?.enabled ?? false,
|