From 937543233628ecf8fa09768f7ef9d0ae27f45b5e Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 6 Mar 2024 14:54:09 +0300 Subject: [PATCH] For Bug 61400, Bug 59054 (wopi) --- apps/api/wopi/editor-wopi.ejs | 2 ++ 1 file changed, 2 insertions(+) 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); }