mirror of
https://github.com/ONLYOFFICE/DocSpace-client.git
synced 2025-04-18 13:44:09 +03:00
JS-SDK: Added loader transition
This commit is contained in:
parent
036b6a5a86
commit
b86672b441
@ -809,13 +809,15 @@
|
||||
const loader = document.getElementById(this.config.frameId + "-loader");
|
||||
|
||||
if (targetFrame) {
|
||||
targetFrame.style.opacity = 1;
|
||||
targetFrame.style.position = "relative";
|
||||
targetFrame.style.opacity = 1;
|
||||
targetFrame.style.width = this.config.width;
|
||||
targetFrame.style.height = this.config.height;
|
||||
targetFrame.parentNode.style.height = "inherit";
|
||||
|
||||
if (loader) {
|
||||
loader.style.opacity = 0;
|
||||
targetFrame.style.transition = "opacity 350ms";
|
||||
loader.remove();
|
||||
this.config.events?.onContentReady &&
|
||||
this.config.events.onContentReady();
|
||||
|
Loading…
x
Reference in New Issue
Block a user