mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 01:26:01 +00:00
autofill fix
This commit is contained in:
@@ -58,7 +58,7 @@ export function countColumnSizes(loadedRows, columns, containerWidth, display: G
|
|||||||
if (display.config.columnWidths[uqName]) {
|
if (display.config.columnWidths[uqName]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const text = row[uqName];
|
const text = row[uqName];
|
||||||
const width = context.measureText(text).width + 8;
|
const width = context.measureText(text).width + 8;
|
||||||
// console.log('colName', colName, text, width);
|
// console.log('colName', colName, text, width);
|
||||||
@@ -122,7 +122,7 @@ export function countVisibleRealColumns(columnSizes, firstVisibleColumnScrollInd
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function filterCellForRow(cell, row: number): CellAddress | null {
|
export function filterCellForRow(cell, row: number): CellAddress | null {
|
||||||
return cell && cell[0] == row && _.isString(cell[0]) ? cell : null;
|
return cell && (cell[0] == row || _.isString(cell[0])) ? cell : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function filterCellsForRow(cells, row: number): CellAddress[] | null {
|
export function filterCellsForRow(cells, row: number): CellAddress[] | null {
|
||||||
|
|||||||
Reference in New Issue
Block a user