mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fixded data grid column click scroll #1303
This commit is contained in:
@@ -912,7 +912,7 @@
|
|||||||
await tick();
|
await tick();
|
||||||
const invMap = _.invert(realColumnUniqueNames);
|
const invMap = _.invert(realColumnUniqueNames);
|
||||||
const colIndex = invMap[uniquePath.join('.')];
|
const colIndex = invMap[uniquePath.join('.')];
|
||||||
scrollIntoView([null, colIndex]);
|
scrollIntoView([null, parseInt(colIndex)]);
|
||||||
|
|
||||||
currentCell = [currentCell[0], parseInt(colIndex)];
|
currentCell = [currentCell[0], parseInt(colIndex)];
|
||||||
selectedCells = [currentCell];
|
selectedCells = [currentCell];
|
||||||
@@ -1168,7 +1168,7 @@
|
|||||||
const invMap = _.invert(realColumnUniqueNames);
|
const invMap = _.invert(realColumnUniqueNames);
|
||||||
const colIndex = invMap[display.focusedColumns[0]];
|
const colIndex = invMap[display.focusedColumns[0]];
|
||||||
if (colIndex) {
|
if (colIndex) {
|
||||||
scrollIntoView([null, colIndex]);
|
scrollIntoView([null, parseInt(colIndex)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user