Why did the scroll bar of better-scroll swallow up about the space of 20px above?


app,betterscroll20px,,

this is the css style code for the outermost fixed height div. The simulation equipment specification is 360mm 640, and the bottom navigation height is 50px
.mine

.
position: absolute
top: 0px
left: 0px
box-sizing: border-box
background: white
height: 590px
width: 100%
overflow: hidden

this is the initialization code for scroll

created () {

  this._initScroll()

},
methods: {

_initScroll() {
    this.$nextTick(() => {
      if (!this.scroll) {
        this.scroll = new BScroll(this.$refs.mine, {
          click: true
        })
      } else {
        this.scroll.refresh()
      }
    })
  }

}

Dec.30,2021
Menu