mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Fix bug 42608
This commit is contained in:
10
slide/api.js
10
slide/api.js
@ -580,6 +580,7 @@
|
||||
this.tmpTextArtDiv = null;
|
||||
this.tmpViewRulers = null;
|
||||
this.tmpZoomType = null;
|
||||
this.tmpDocumentUnits = null;
|
||||
|
||||
this.DocumentUrl = "";
|
||||
this.bNoSendComments = false;
|
||||
@ -5460,6 +5461,10 @@ background-repeat: no-repeat;\
|
||||
this.WordControl.UpdateHorRulerBack(true);
|
||||
this.WordControl.UpdateVerRulerBack(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.tmpDocumentUnits = _units;
|
||||
}
|
||||
};
|
||||
|
||||
asc_docs_api.prototype.GoToHeader = function(pageNumber)
|
||||
@ -7008,6 +7013,11 @@ background-repeat: no-repeat;\
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (null != this.tmpDocumentUnits)
|
||||
{
|
||||
this.asc_SetDocumentUnits(this.tmpDocumentUnits);
|
||||
this.tmpDocumentUnits = null;
|
||||
}
|
||||
|
||||
this.asc_setViewMode(this.isViewMode);
|
||||
|
||||
|
||||
10
word/api.js
10
word/api.js
@ -793,6 +793,7 @@
|
||||
this.tmpCoMarksDraw = false;
|
||||
this.tmpViewRulers = null;
|
||||
this.tmpZoomType = null;
|
||||
this.tmpDocumentUnits = null;
|
||||
|
||||
// это чтобы сразу показать ридер, без возможности вернуться в редактор/вьюер
|
||||
this.isOnlyReaderMode = false;
|
||||
@ -7037,6 +7038,10 @@ background-repeat: no-repeat;\
|
||||
this.WordControl.UpdateHorRulerBack(true);
|
||||
this.WordControl.UpdateVerRulerBack(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.tmpDocumentUnits = _units;
|
||||
}
|
||||
};
|
||||
|
||||
asc_docs_api.prototype.GoToHeader = function(pageNumber)
|
||||
@ -7844,6 +7849,11 @@ background-repeat: no-repeat;\
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (null != this.tmpDocumentUnits)
|
||||
{
|
||||
this.asc_SetDocumentUnits(this.tmpDocumentUnits);
|
||||
this.tmpDocumentUnits = null;
|
||||
}
|
||||
|
||||
this.asc_setViewMode(this.isViewMode);
|
||||
this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw);
|
||||
|
||||
Reference in New Issue
Block a user