diff --git a/src/pages/transaction/index.vue b/src/pages/transaction/index.vue index 052bd6031..29dd43440 100644 --- a/src/pages/transaction/index.vue +++ b/src/pages/transaction/index.vue @@ -214,10 +214,7 @@ export default { watch: { startPageStatus (n, o) { - setTimeout(() => { - const sectionHeight = this.$refs.fixedSection.clientHeight - this.$refs.transactionSection.setAttribute('style', `position: relative; margin-top: ${sectionHeight - 24}px; z-index: 1`) - }, 100) + this.adjustTransactionsDivHeight() }, selectedAsset () { this.transactions = [] @@ -282,6 +279,12 @@ export default { } }, methods: { + adjustTransactionsDivHeight () { + setTimeout(() => { + const sectionHeight = this.$refs.fixedSection.clientHeight + this.$refs.transactionSection.setAttribute('style', `position: relative; margin-top: ${sectionHeight - 24}px; z-index: 1`) + }, 500) + }, formatDate (date) { return ago(new Date(date)) }, @@ -772,6 +775,8 @@ export default { vm.startPageStatus = false } + vm.adjustTransactionsDivHeight() + if (Array.isArray(vm.assets) && this.assets.length > 0) { vm.selectedAsset = this.bchAsset }