Fix double click resizing of sticky column

This commit is contained in:
Andrew Kingston 2023-04-13 12:05:47 +01:00
parent 69f6834886
commit 8100737817
2 changed files with 1 additions and 14 deletions

View File

@ -120,8 +120,7 @@ export const deriveStores = context => {
}
stickyColumn.set({
name: primaryDisplay,
width:
existing?.width || schema[primaryDisplay].width || DefaultColumnWidth,
width: schema[primaryDisplay].width || DefaultColumnWidth,
left: gutterWidth,
schema: schema[primaryDisplay],
idx: "sticky",

View File

@ -99,18 +99,6 @@ export const deriveStores = context => {
// Resets a column size back to default
const resetSize = async column => {
// let columnIdx = get(columns).findIndex(col => col.name === column.name)
// if (columnIdx === -1) {
// stickyColumn.update(state => ({
// ...state,
// width: DefaultColumnWidth,
// }))
// } else {
// columns.update(state => {
// state[columnIdx].width = DefaultColumnWidth
// return [...state]
// })
// }
await columns.actions.updateColumnWidth(column.name, DefaultColumnWidth)
}