Skip to content

Commit

Permalink
perf(UI): avoid columns size change when editing cells or scrolling r…
Browse files Browse the repository at this point in the history
…esults
  • Loading branch information
Fabio286 committed Dec 8, 2021
1 parent aaa5549 commit 813aa32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderer/components/WorkspaceTabQueryTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
class="mdi sort-icon"
:class="currentSortDir === 'asc' ? 'mdi-sort-ascending':'mdi-sort-descending'"
/>
<i v-else class="mdi sort-icon mdi-minus d-invisible" />
</div>
</div>
</div>
Expand Down Expand Up @@ -244,6 +245,11 @@ export default {
if (this.$refs.tableWrapper)
this.scrollElement = this.$refs.tableWrapper;
document.querySelectorAll('.column-resizable').forEach(element => {
if (element.clientWidth !== 0)
element.style.width = element.clientWidth + 'px';
});
},
mounted () {
window.addEventListener('resize', this.resizeResults);
Expand Down

0 comments on commit 813aa32

Please sign in to comment.