Merge pull request #1391 from ONLYOFFICE/fix/bugfix

Fix/bugfix
This commit is contained in:
Julia Radzhabova 2021-12-06 19:10:41 +03:00 committed by GitHub
commit 24c3c61ac4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 8 deletions

View file

@ -554,10 +554,11 @@ define([
Asc.c_oAscFileType.OTT,
Asc.c_oAscFileType.FB2,
Asc.c_oAscFileType.EPUB,
Asc.c_oAscFileType.DOCM,
Asc.c_oAscFileType.DOCXF,
Asc.c_oAscFileType.OFORM
Asc.c_oAscFileType.DOCM
];
if (this.appOptions.canFeatureForms) {
_supported = _supported.concat([Asc.c_oAscFileType.DOCXF, Asc.c_oAscFileType.OFORM]);
}
if ( !_format || _supported.indexOf(_format) < 0 )
_format = Asc.c_oAscFileType.DOCX;

View file

@ -159,10 +159,11 @@ define([
Asc.c_oAscFileType.OTT,
Asc.c_oAscFileType.FB2,
Asc.c_oAscFileType.EPUB,
Asc.c_oAscFileType.DOCM,
Asc.c_oAscFileType.DOCXF,
Asc.c_oAscFileType.OFORM
Asc.c_oAscFileType.DOCM
];
if (_main.appOptions.canFeatureForms) {
_supported = _supported.concat([Asc.c_oAscFileType.DOCXF, Asc.c_oAscFileType.OFORM]);
}
if ( !_format || _supported.indexOf(_format) < 0 )
_format = Asc.c_oAscFileType.PDF;

View file

@ -523,8 +523,8 @@ define([
}
showPoint = [moveData.get_X(), moveData.get_Y()];
showPoint[1] += (me._XY[1]-15);
showPoint[0] += (me._XY[0]+5);
showPoint[1] += ((me.isPreviewVisible ? 0 : me._XY[1])-15);
showPoint[0] += ((me.isPreviewVisible ? 0 : me._XY[0])+5);
if (!screenTip.isVisible || recalc) {
screenTip.isVisible = true;
@ -536,6 +536,8 @@ define([
screenTip.tipWidth = screenTip.toolTip.getBSTip().$tip.width();
}
showPoint[1] -= screenTip.tipHeight;
if (showPoint[1]<0)
showPoint[1] = 0;
if (showPoint[0] + screenTip.tipWidth > me._BodyWidth )
showPoint[0] = me._BodyWidth - screenTip.tipWidth;
screenTip.toolTip.getBSTip().$tip.css({top: showPoint[1] + 'px', left: showPoint[0] + 'px'});