Commit c10a4be0 authored by JingChao's avatar JingChao

Update index.vue

parent c6dddedd
......@@ -47,10 +47,11 @@ export default {
return $el
},
getNextElementHeight () {
let nextElement = this.$el.nextElementSibling
//let nextElement = this.getHeader()
let headerElement = this.$el.previousElementSibling
let height = 0
if (nextElement) {
height = window.getComputedStyle(nextElement).height
if (headerElement) {
height = window.getComputedStyle(headerElement).height
if (height) {
height = Number(height.replace('px', ''))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment