fix scrolling issue with large font
This commit is contained in:
parent
a8d160f9b1
commit
2a5692d9a7
1 changed files with 5 additions and 1 deletions
|
|
@ -437,8 +437,12 @@ var vm = new Vue({
|
|||
})
|
||||
},
|
||||
itemListCloseToBottom: function() {
|
||||
// approx. vertical space at the bottom of the list (loading el & paddings) when 1rem = 16px
|
||||
var bottomSpace = 70
|
||||
var scale = (parseFloat(getComputedStyle(document.documentElement).fontSize) || 16) / 16
|
||||
|
||||
var el = this.$refs.itemlist
|
||||
var closeToBottom = (el.scrollHeight - el.scrollTop - el.offsetHeight) < 50
|
||||
var closeToBottom = (el.scrollHeight - el.scrollTop - el.offsetHeight) < bottomSpace * scale
|
||||
return closeToBottom
|
||||
},
|
||||
loadMoreItems: function(event, el) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue