mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
adjust the grid's height in table designer (#19550)
This commit is contained in:
@@ -9,7 +9,8 @@ import { deepClone } from 'vs/base/common/objects';
|
|||||||
|
|
||||||
export const TableRowHeight = 25;
|
export const TableRowHeight = 25;
|
||||||
export const TableHeaderRowHeight = 28;
|
export const TableHeaderRowHeight = 28;
|
||||||
const minHeight = getTableHeight(2);
|
export const ScrollbarSize = 15;
|
||||||
|
const minHeight = getTableHeight(1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Layout the table, the height will be determined by the number of rows in it.
|
* Layout the table, the height will be determined by the number of rows in it.
|
||||||
@@ -33,5 +34,5 @@ export function layoutDesignerTable(table: Table<Slick.SlickData>, width: number
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getTableHeight(rows: number): number {
|
function getTableHeight(rows: number): number {
|
||||||
return rows * TableRowHeight + TableHeaderRowHeight;
|
return rows * TableRowHeight + TableHeaderRowHeight + ScrollbarSize;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user