Mini Program gets the height from the top of view and then wx.pageScrollTo, but the distance is not right.

    query.select(".comment-list-wrp").boundingClientRect()
    query.exec( (res)=> {
      //res myText 
      const windowH = wx.getSystemInfoSync().windowHeight
      const ratio = wx.getSystemInfoSync().pixelRatio
      console.log(windowH, ratio)
      console.log(res);
      //
      console.log(res[0].height);
      this.setData({
        commentTop: res[0].top
      })
    })

clipboard.png

but what happens if the element scrolls scrollTop to the set commentTop but the distance is not correct

Aug.07,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea9484-469c4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea9484-469c4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?