diff --git a/apps/api/wopi/editor-wopi.ejs b/apps/api/wopi/editor-wopi.ejs index 82e45d1610..9dcc39e4b9 100644 --- a/apps/api/wopi/editor-wopi.ejs +++ b/apps/api/wopi/editor-wopi.ejs @@ -390,9 +390,11 @@ div { if (window.addEventListener) { window.addEventListener("load", connectEditor); window.addEventListener("resize", fixSize); + window.addEventListener("orientationchange", fixSize); } else if (window.attachEvent) { window.attachEvent("onload", connectEditor); window.attachEvent("onresize", fixSize); + window.attachEvent("orientationchange", fixSize); }