Update split.js
Browse files
split.js
CHANGED
|
@@ -26,6 +26,11 @@ function fixDragBtn() {
|
|
| 26 |
pb = Number(pb.replace("px", ""));
|
| 27 |
console.log(pb);
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
// This is the actual value of the already updated document!
|
| 31 |
var doc = document.documentElement.getBoundingClientRect();
|
|
@@ -35,7 +40,7 @@ function fixDragBtn() {
|
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
-
var h = window.visualViewport.height - (rect.top - doc.top) - pb -
|
| 39 |
hello.style.height = `${h}px`;
|
| 40 |
|
| 41 |
console.log(window.visualViewport.height);
|
|
|
|
| 26 |
pb = Number(pb.replace("px", ""));
|
| 27 |
console.log(pb);
|
| 28 |
|
| 29 |
+
|
| 30 |
+
var show_api = document.getElementsByClassName("show-api")[0];
|
| 31 |
+
var api = w3_getStyleValue(show-api, "height");
|
| 32 |
+
apih = Number(pb.replace("px", ""));
|
| 33 |
+
console.log(apih);
|
| 34 |
|
| 35 |
// This is the actual value of the already updated document!
|
| 36 |
var doc = document.documentElement.getBoundingClientRect();
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
+
var h = window.visualViewport.height - (rect.top - doc.top) - pb - apih;
|
| 44 |
hello.style.height = `${h}px`;
|
| 45 |
|
| 46 |
console.log(window.visualViewport.height);
|