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;
tableAlias: string;
orgTable: string;
key?: 'pri' | 'uni';
key?: 'pri' | 'uni' | '';
}
export interface TableIndex {

View File

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