Skip to content

Commit

Permalink
Merge pull request #2877 from ONLYOFFICE/fix/bugfix
Browse files Browse the repository at this point in the history
Fix/bugfix
  • Loading branch information
JuliaRadzhabova authored Mar 6, 2024
2 parents 08c71ac + 9375432 commit d621a3e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions apps/api/wopi/editor-wopi.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,11 @@ div {
if (window.addEventListener) {
window.addEventListener("load", connectEditor);
window.addEventListener("resize", fixSize);
window.addEventListener("orientationchange", fixSize);
} else if (window.attachEvent) {
window.attachEvent("onload", connectEditor);
window.attachEvent("onresize", fixSize);
window.attachEvent("orientationchange", fixSize);
}
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion apps/documenteditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2924,7 +2924,7 @@ define([
createSynchTip: function () {
this.synchTooltip = new Common.UI.SynchronizeTip({
extCls: (this.mode.customization && !!this.mode.customization.compactHeader) ? undefined : 'inc-index',
placement: 'right-bottom',
placement: this.mode.isDesktopApp ? 'bottom-right' : 'right-bottom',
target: this.btnCollabChanges.$el
});
this.synchTooltip.on('dontshowclick', function () {
Expand Down
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ define([
createSynchTip: function () {
this.synchTooltip = new Common.UI.SynchronizeTip({
extCls: (this.mode.customization && !!this.mode.customization.compactHeader) ? undefined : 'inc-index',
placement: 'right-bottom',
placement: this.mode.isDesktopApp ? 'bottom-right' : 'right-bottom',
target: this.btnCollabChanges.$el
});
this.synchTooltip.on('dontshowclick', function () {
Expand Down
2 changes: 1 addition & 1 deletion apps/presentationeditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ define([
createSynchTip: function () {
this.synchTooltip = new Common.UI.SynchronizeTip({
extCls: (this.mode.customization && !!this.mode.customization.compactHeader) ? undefined : 'inc-index',
placement: 'right-bottom',
placement: this.mode.isDesktopApp ? 'bottom-right' : 'right-bottom',
target: this.btnCollabChanges.$el
});
this.synchTooltip.on('dontshowclick', function () {
Expand Down
2 changes: 1 addition & 1 deletion apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
fillIconsLabels: function() {
var arr = this.iconsControls,
len = this.iconsProps.iconsLength,
regstr = new RegExp('^\s*[0-9]+[,.]?[0-9]*\s*$');
regstr = new RegExp('^\s*[-]?[0-9]+[,.]?[0-9]*\s*$');
var val = arr[1].value.getValue();
arr[0].label.text(Common.Utils.String.format(this.textIconLabelFirst, arr[1].cmbOperator.getSelectedRecord().prevOp, regstr.test(val) ? parseFloat(val) : this.textFormula));
for (var i=1; i<len-1; i++) {
Expand Down
2 changes: 1 addition & 1 deletion apps/spreadsheeteditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3215,7 +3215,7 @@ define([
createSynchTip: function () {
this.synchTooltip = new Common.UI.SynchronizeTip({
extCls: (this.mode.customization && !!this.mode.customization.compactHeader) ? undefined : 'inc-index',
placement: 'right-bottom',
placement: this.mode.isDesktopApp ? 'bottom-right' : 'right-bottom',
target: this.btnCollabChanges.$el
});
this.synchTooltip.on('dontshowclick', function() {
Expand Down

0 comments on commit d621a3e

Please sign in to comment.