Skip to content

Commit

Permalink
default frame height if editors opened in same tab
Browse files Browse the repository at this point in the history
  • Loading branch information
rivexe committed Dec 25, 2023
1 parent 2c380cb commit 689bc39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@

OCA.Onlyoffice.docEditor = new DocsAPI.DocEditor("iframeEditor", config);

if (config.type === "mobile" && $("#app > iframe").css("position") === "fixed") {
if (config.type === "mobile" && $("#app > iframe").css("position") === "fixed"
&& !OCA.Onlyoffice.inframe) {
$("#app > iframe").css("height", "calc(100% - 45px)");
}

Expand Down

0 comments on commit 689bc39

Please sign in to comment.