mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
nodejs: fix mobile size for chrome on iOS (Fix Bug 59054)
This commit is contained in:
@ -336,11 +336,18 @@
|
||||
}
|
||||
};
|
||||
|
||||
var onDocumentReady = function(){
|
||||
if (config.type === "mobile") {
|
||||
document.getElementsByTagName("iframe")[0].style.height = window.innerHeight + "px";
|
||||
}
|
||||
};
|
||||
|
||||
config = {
|
||||
<%- include("config") %>
|
||||
};
|
||||
config.events = {
|
||||
"onAppReady": onAppReady,
|
||||
"onDocumentReady": fixSize,
|
||||
"onDocumentStateChange": onDocumentStateChange,
|
||||
"onError": onError,
|
||||
"onOutdatedVersion": onOutdatedVersion,
|
||||
|
||||
Reference in New Issue
Block a user