Update split.js
Browse files
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 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
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 |
|