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({
|
stickyColumn.set({
|
||||||
name: primaryDisplay,
|
name: primaryDisplay,
|
||||||
width:
|
width: schema[primaryDisplay].width || DefaultColumnWidth,
|
||||||
existing?.width || schema[primaryDisplay].width || DefaultColumnWidth,
|
|
||||||
left: gutterWidth,
|
left: gutterWidth,
|
||||||
schema: schema[primaryDisplay],
|
schema: schema[primaryDisplay],
|
||||||
idx: "sticky",
|
idx: "sticky",
|
||||||
|
|
|
@ -99,18 +99,6 @@ export const deriveStores = context => {
|
||||||
|
|
||||||
// Resets a column size back to default
|
// Resets a column size back to default
|
||||||
const resetSize = async column => {
|
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)
|
await columns.actions.updateColumnWidth(column.name, DefaultColumnWidth)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue