diff --git a/src/views/mobile/accounts/Edit.vue b/src/views/mobile/accounts/Edit.vue index 68e30ef5..5adc0b34 100644 --- a/src/views/mobile/accounts/Edit.vue +++ b/src/views/mobile/accounts/Edit.vue @@ -142,6 +142,8 @@ { + el.scrollTop = 0; + el.style.height = ''; + el.style.height = el.scrollHeight + 'px'; + }); + }, chooseSuitableIcon(oldCategory, newCategory) { const allCategories = this.$constants.account.allCategories; diff --git a/src/views/mobile/categories/Edit.vue b/src/views/mobile/categories/Edit.vue index e0249d01..84a840a0 100644 --- a/src/views/mobile/categories/Edit.vue +++ b/src/views/mobile/categories/Edit.vue @@ -66,6 +66,8 @@ { + el.scrollTop = 0; + el.style.height = ''; + el.style.height = el.scrollHeight + 'px'; + }); } } }