revert annotation max height calculation
This commit is contained in:
parent
405cb1029d
commit
4cd8560312
2 changed files with 3 additions and 44 deletions
|
|
@ -29,18 +29,6 @@ class PandoraScroll extends HTMLElement {
|
|||
video.muted = true
|
||||
})
|
||||
}
|
||||
this.updateAnnotationHeight = function() {
|
||||
var height = 0
|
||||
var text = shadow.querySelector('.text')
|
||||
text.querySelectorAll('.annotation.single').forEach(annotation => {
|
||||
var rect = annotation.getBoundingClientRect()
|
||||
console.log(annotation, rect.height)
|
||||
if (rect.height > height) {
|
||||
height = rect.height
|
||||
}
|
||||
})
|
||||
text.style.height = height + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue