Skip to content

Commit

Permalink
Merge pull request #446 from ONLYOFFICE/hotfix/inframe-height
Browse files Browse the repository at this point in the history
default frame height if editors opened in same tab
  • Loading branch information
LinneyS authored Dec 26, 2023
2 parents 4a61294 + 689bc39 commit cf13e7f
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 cf13e7f

Please sign in to comment.