Skip to content
Snippets Groups Projects
Commit e6e50172 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

reset max scroll when searching

parent 99a3fe8a
No related branches found
No related tags found
No related merge requests found
...@@ -223,6 +223,7 @@ function load_articles(self, query, offset, n, dict) { ...@@ -223,6 +223,7 @@ function load_articles(self, query, offset, n, dict) {
function navigate_to_query(self, word) { function navigate_to_query(self, word) {
self.waiting_for_articles = true self.waiting_for_articles = true
self.max_scroll = window.window.innerHeight
let query = self.event ? self.event : {q: word} let query = self.event ? self.event : {q: word}
self.query = query self.query = query
...@@ -332,7 +333,6 @@ export default { ...@@ -332,7 +333,6 @@ export default {
}, },
update_lang_form: function (lang) { update_lang_form: function (lang) {
this.lang = lang this.lang = lang
this.max_scroll = window.window.innerHeight
let name = null let name = null
let query = null let query = null
if(this.$route.name == 'word') { if(this.$route.name == 'word') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment