Fix Bug 65935

This commit is contained in:
Julia Radzhabova
2024-10-30 21:02:36 +03:00
parent d36a949f4f
commit 25fd370d9e
4 changed files with 27 additions and 0 deletions

View File

@ -1996,6 +1996,7 @@ define([
me.onUpdateLastCustomMargins();
Common.NotificationCenter.on('margins:update', _.bind(me.onUpdateLastCustomMargins, me));
Common.NotificationCenter.on('desktop:window', _.bind(me.onDesktopWindow, me));
}
if ( me.isCompactView )
@ -3498,6 +3499,12 @@ define([
}
},
onDesktopWindow: function() {
if (this.synchTooltip && this.synchTooltip.isVisible()) {
this.synchTooltip.show(); // change position for visible tip
}
},
lockToolbar: function (causes, lock, opts) {
Common.Utils.lockControls(causes, lock, opts, this.lockControls);
}

View File

@ -1214,6 +1214,7 @@ define([
this.showSynchTip = !Common.localStorage.getBool("pdfe-hide-synch");
this.needShowSynchTip = false;
/** coauthoring end **/
Common.NotificationCenter.on('desktop:window', _.bind(this.onDesktopWindow, this));
}
(mode.isEdit || mode.isRestrictedEdit) && me.setTab('home');
@ -1777,6 +1778,11 @@ define([
}
},
onDesktopWindow: function() {
if (this.synchTooltip && this.synchTooltip.isVisible()) {
this.synchTooltip.show(); // change position for visible tip
}
},
/** coauthoring end **/
lockToolbar: function (causes, lock, opts) {

View File

@ -1374,6 +1374,7 @@ define([
if ( mode.isEdit ) {
me.setTab('home');
me.processPanelVisible();
Common.NotificationCenter.on('desktop:window', _.bind(me.onDesktopWindow, me));
}
if ( me.isCompactView )
@ -2407,6 +2408,12 @@ define([
return !!specSymbol ? specSymbol.description : this.capBtnInsSymbol + ': ' + symbol;
},
onDesktopWindow: function() {
if (this.synchTooltip && this.synchTooltip.isVisible()) {
this.synchTooltip.show(); // change position for visible tip
}
},
tipNumCapitalLetters: 'A. B. C.',
tipNumLettersParentheses: 'a) b) c)',
tipNumLettersPoints: 'a. b. c.',

View File

@ -2360,6 +2360,7 @@ define([
me.onUpdateLastCustomMargins();
Common.NotificationCenter.on('margins:update', _.bind(me.onUpdateLastCustomMargins, me));
this.btnInsertImage.menu.items[2].setVisible(mode.canRequestInsertImage || mode.fileChoiceUrl && mode.fileChoiceUrl.indexOf("{documentType}")>-1);
Common.NotificationCenter.on('desktop:window', _.bind(me.onDesktopWindow, me));
}
me.setTab('home');
@ -3508,6 +3509,12 @@ define([
getSymbolDescription: function(symbol){
var specSymbol = this.specSymbols.find(function (item){return item.symbol == symbol});
return !!specSymbol ? specSymbol.description : this.capBtnInsSymbol + ': ' + symbol;
},
onDesktopWindow: function() {
if (this.synchTooltip && this.synchTooltip.isVisible()) {
this.synchTooltip.show(); // change position for visible tip
}
}
}, SSE.Views.Toolbar || {}));
});