@xcelsior/ui-spreadsheets 1.1.11 → 1.1.12
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.
package/dist/index.js
CHANGED
|
@@ -403,6 +403,11 @@ var SpreadsheetCell = ({
|
|
|
403
403
|
style: {
|
|
404
404
|
backgroundColor: isInSelection ? "rgb(239 246 255)" : getBackgroundColor(),
|
|
405
405
|
minWidth: column.minWidth || column.width,
|
|
406
|
+
// Pinned columns need fixed width so sticky offset calculations are accurate
|
|
407
|
+
...isPinned && {
|
|
408
|
+
width: column.minWidth || column.width,
|
|
409
|
+
maxWidth: column.minWidth || column.width
|
|
410
|
+
},
|
|
406
411
|
...positionStyles,
|
|
407
412
|
...selectionBorderStyles
|
|
408
413
|
},
|
|
@@ -1244,6 +1249,11 @@ var SpreadsheetHeader = ({
|
|
|
1244
1249
|
backgroundColor: highlightColor || "rgb(243 244 246)",
|
|
1245
1250
|
// gray-100
|
|
1246
1251
|
minWidth: column.minWidth || column.width,
|
|
1252
|
+
// Pinned columns need fixed width so sticky offset calculations are accurate
|
|
1253
|
+
...isPinned && {
|
|
1254
|
+
width: column.minWidth || column.width,
|
|
1255
|
+
maxWidth: column.minWidth || column.width
|
|
1256
|
+
},
|
|
1247
1257
|
top: 0,
|
|
1248
1258
|
// For sticky header
|
|
1249
1259
|
...positionStyles
|
|
@@ -4056,7 +4066,9 @@ function Spreadsheet({
|
|
|
4056
4066
|
position: "sticky",
|
|
4057
4067
|
left: isPinnedLeft ? `${getColumnLeftOffset(item.columnId)}px` : void 0,
|
|
4058
4068
|
right: !isPinnedLeft ? `${getColumnRightOffset(item.columnId)}px` : void 0,
|
|
4059
|
-
minWidth: col?.minWidth || col?.width
|
|
4069
|
+
minWidth: col?.minWidth || col?.width,
|
|
4070
|
+
width: col?.minWidth || col?.width,
|
|
4071
|
+
maxWidth: col?.minWidth || col?.width
|
|
4060
4072
|
}
|
|
4061
4073
|
},
|
|
4062
4074
|
`pinned-group-${item.columnId}`
|