ydshieh HF staff commited on
Commit
1d503b3
1 Parent(s): 7c0a097

Update split.js

Browse files
Files changed (1) hide show
  1. split.js +4 -7
split.js CHANGED
@@ -34,13 +34,10 @@ function fixDragBtn() {
34
  var transcript = document.querySelector(`[data-tt-transcript="0"]`);
35
  var transcript = document.getElementById("transcript");
36
 
37
- if (transcript != null) {
38
-
39
- var wrapper_rec = wrapper.getBoundingClientRect();
40
- var transcript_rec= transcript.getBoundingClientRect();
41
- h = wrapper_rec.height - (transcript_rec.top - wrapper_rec.top);
42
- transcript.style.height = `${h}px`;
43
- }
44
 
45
  var leftpadding, dragleft, buttonwidth
46
 
 
34
  var transcript = document.querySelector(`[data-tt-transcript="0"]`);
35
  var transcript = document.getElementById("transcript");
36
 
37
+ var wrapper_rec = wrapper.getBoundingClientRect();
38
+ var transcript_rec= transcript.getBoundingClientRect();
39
+ h = wrapper_rec.height - (transcript_rec.top - wrapper_rec.top);
40
+ transcript.style.height = `${h}px`;
 
 
 
41
 
42
  var leftpadding, dragleft, buttonwidth
43