Fix double click resizing of sticky column
This commit is contained in:
parent
69f6834886
commit
8100737817
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue