1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix(UI): wrong height in scrolling tables in some cases

This commit is contained in:
2021-03-05 17:10:52 +01:00
parent 07f60c3917
commit 4862d51fba
3 changed files with 5 additions and 2 deletions

View File

@ -57,6 +57,7 @@
:results="results" :results="results"
:tab-uid="tab.uid" :tab-uid="tab.uid"
:conn-uid="connection.uid" :conn-uid="connection.uid"
:is-selected="isSelected"
mode="query" mode="query"
@update-field="updateField" @update-field="updateField"
@delete-selected="deleteSelected" @delete-selected="deleteSelected"

View File

@ -97,7 +97,8 @@ export default {
props: { props: {
results: Array, results: Array,
connUid: String, connUid: String,
mode: String mode: String,
isSelected: Boolean
}, },
data () { data () {
return { return {
@ -273,7 +274,7 @@ export default {
: []; : [];
}, },
resizeResults () { resizeResults () {
if (this.$refs.resultTable) { if (this.$refs.resultTable && this.isSelected) {
const el = this.$refs.tableWrapper; const el = this.$refs.tableWrapper;
if (el) { if (el) {

View File

@ -90,6 +90,7 @@
:results="results" :results="results"
:tab-uid="tabUid" :tab-uid="tabUid"
:conn-uid="connection.uid" :conn-uid="connection.uid"
:is-selected="isSelected"
mode="table" mode="table"
@update-field="updateField" @update-field="updateField"
@delete-selected="deleteSelected" @delete-selected="deleteSelected"