[PE] Fix Bug 54127

This commit is contained in:
Julia Radzhabova 2021-12-04 13:42:21 +03:00
parent 982ef3d8ee
commit 7713fd33a3
2 changed files with 11 additions and 1 deletions

View file

@ -439,6 +439,14 @@ define([
/** coauthoring end **/
me.hideTips();
onDocumentHolderResize();
},
'preview:show': function(e){
me.isPreviewVisible = true;
screenTip && (screenTip.tipLength = -1); // redraw link tip
},
'preview:hide': function(e){
me.isPreviewVisible = false;
screenTip && (screenTip.tipLength = -1); // redraw link tip
}
});
@ -508,7 +516,7 @@ define([
ToolTip = ToolTip.substr(0, 256) + '...';
if (screenTip.tipLength !== ToolTip.length || screenTip.strTip.indexOf(ToolTip)<0 ) {
screenTip.toolTip.setTitle(ToolTip + '<br><b>' + me.txtPressLink + '</b>');
screenTip.toolTip.setTitle(ToolTip + (me.isPreviewVisible ? '' : '<br><b>' + me.txtPressLink + '</b>'));
screenTip.tipLength = ToolTip.length;
screenTip.strTip = ToolTip;
recalc = true;

View file

@ -308,6 +308,7 @@ define([
}, 1000);
$('#viewport-vbox-layout').css('z-index','0');
this.fireEvent('editcomplete', this);
Common.NotificationCenter.trigger('preview:show');
},
hide: function() {
@ -324,6 +325,7 @@ define([
this.$el.off('mousemove');
this.fireEvent('editcomplete', this);
Common.NotificationCenter.trigger('preview:hide');
},
setApi: function(o) {