fix(UI): wrong tables scrollable height after switching tabs

This commit is contained in:
Fabio Di Stasio 2022-06-22 18:47:32 +02:00
parent 869c75f654
commit 8f01740475
2 changed files with 6 additions and 3 deletions

View File

@ -125,7 +125,7 @@ export interface TableField {
alias: string; alias: string;
tableAlias: string; tableAlias: string;
orgTable: string; orgTable: string;
key?: 'pri' | 'uni'; key?: 'pri' | 'uni' | '';
} }
export interface TableIndex { export interface TableIndex {

View File

@ -634,8 +634,11 @@ watch(resultsetIndex, () => {
setLocalResults(); setLocalResults();
}); });
watch(() => props.isSelected, (val) => { watch(() => props.isSelected, async (val) => {
if (val) refreshScroller(); if (val) {
await nextTick();
refreshScroller();
}
}); });
onUpdated(() => { onUpdated(() => {