hookehuyr

fix

...@@ -53,7 +53,7 @@ const openKeyboard = (e) => { ...@@ -53,7 +53,7 @@ const openKeyboard = (e) => {
53 document.getElementById("app").style.paddingBottom = "244px"; 53 document.getElementById("app").style.paddingBottom = "244px";
54 window.scrollTo(0, $("#app").height()); 54 window.scrollTo(0, $("#app").height());
55 } else { 55 } else {
56 - document.documentElement.scrollTop = 400; 56 + document.documentElement.scrollTop = target_top + 244;
57 } 57 }
58 }; 58 };
59 const blurKeyboard = () => { 59 const blurKeyboard = () => {
......
...@@ -65,7 +65,7 @@ const showKeyboard = (e) => { ...@@ -65,7 +65,7 @@ const showKeyboard = (e) => {
65 if (target_top < 244) { 65 if (target_top < 244) {
66 window.scrollTo(0, $("#app").height()); 66 window.scrollTo(0, $("#app").height());
67 } else { 67 } else {
68 - document.documentElement.scrollTop = 400; 68 + document.documentElement.scrollTop = target_top + 244;
69 } 69 }
70 }; 70 };
71 const blurKeyboard = () => { 71 const blurKeyboard = () => {
......
...@@ -75,7 +75,7 @@ const openKeyboard = (e) => { ...@@ -75,7 +75,7 @@ const openKeyboard = (e) => {
75 document.getElementById("app").style.paddingBottom = "244px"; 75 document.getElementById("app").style.paddingBottom = "244px";
76 window.scrollTo(0, $("#app").height()); 76 window.scrollTo(0, $("#app").height());
77 } else { 77 } else {
78 - document.documentElement.scrollTop = 400; 78 + document.documentElement.scrollTop = target_top + 244;
79 } 79 }
80 }; 80 };
81 const blurKeyboard = () => { 81 const blurKeyboard = () => {
......