From e6e50172aecc0862befe87ecf6c9e68c0eabeea4 Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Tue, 16 Nov 2021 17:22:26 +0100
Subject: [PATCH] reset max scroll when searching

---
 src/components/DictionaryView.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue
index a7bcda16..9ba41a11 100644
--- a/src/components/DictionaryView.vue
+++ b/src/components/DictionaryView.vue
@@ -223,6 +223,7 @@ function load_articles(self, query, offset, n, dict) {
 
 function navigate_to_query(self, word) {
   self.waiting_for_articles = true
+  self.max_scroll = window.window.innerHeight
   let  query = self.event ? self.event : {q: word}
   self.query = query
   
@@ -332,7 +333,6 @@ export default {
       },
       update_lang_form: function (lang) {
         this.lang = lang
-        this.max_scroll = window.window.innerHeight
         let name = null
         let query = null
         if(this.$route.name == 'word') {
-- 
GitLab