Skip to content

Commit

Permalink
[nodejs] debug mobile editors opening
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Mar 26, 2024
1 parent d86584e commit 671b867
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions web/documentserver-example/nodejs/views/editor.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,15 @@
if (config.type !== "mobile") {
return;
}
var wrapEl = document.getElementsByClassName("form");
if (wrapEl.length) {
wrapEl[0].style.height = screen.availHeight + "px";
window.scrollTo(0, -1);
wrapEl[0].style.height = window.innerHeight + "px";
}
// var wrapEl = document.getElementsByClassName("form");
// if (wrapEl.length) {
// wrapEl[0].style.height = screen.availHeight + "px";
// window.scrollTo(0, -1);
// wrapEl[0].style.height = window.innerHeight + "px";
// }
document.getElementsByTagName("iframe")[0].style.height = window.innerHeight + "px";
};
const getFileExt = function (fileName) {
Expand Down

0 comments on commit 671b867

Please sign in to comment.