mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +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 = {
|
config = {
|
||||||
<%- include("config") %>
|
<%- include("config") %>
|
||||||
};
|
};
|
||||||
config.events = {
|
config.events = {
|
||||||
"onAppReady": onAppReady,
|
"onAppReady": onAppReady,
|
||||||
|
"onDocumentReady": fixSize,
|
||||||
"onDocumentStateChange": onDocumentStateChange,
|
"onDocumentStateChange": onDocumentStateChange,
|
||||||
"onError": onError,
|
"onError": onError,
|
||||||
"onOutdatedVersion": onOutdatedVersion,
|
"onOutdatedVersion": onOutdatedVersion,
|
||||||
|
|||||||
Reference in New Issue
Block a user