Skip to content

Commit

Permalink
fix(UI): wrong height in scrolling tables in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Mar 5, 2021
1 parent 07f60c3 commit 4862d51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/renderer/components/WorkspaceQueryTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
:results="results"
:tab-uid="tab.uid"
:conn-uid="connection.uid"
:is-selected="isSelected"
mode="query"
@update-field="updateField"
@delete-selected="deleteSelected"
Expand Down
5 changes: 3 additions & 2 deletions src/renderer/components/WorkspaceQueryTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export default {
props: {
results: Array,
connUid: String,
mode: String
mode: String,
isSelected: Boolean
},
data () {
return {
Expand Down Expand Up @@ -273,7 +274,7 @@ export default {
: [];
},
resizeResults () {
if (this.$refs.resultTable) {
if (this.$refs.resultTable && this.isSelected) {
const el = this.$refs.tableWrapper;
if (el) {
Expand Down
1 change: 1 addition & 0 deletions src/renderer/components/WorkspaceTableTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
:results="results"
:tab-uid="tabUid"
:conn-uid="connection.uid"
:is-selected="isSelected"
mode="table"
@update-field="updateField"
@delete-selected="deleteSelected"
Expand Down

0 comments on commit 4862d51

Please sign in to comment.