diff --git a/apps/common/main/lib/component/DataView.js b/apps/common/main/lib/component/DataView.js index bb4706c077..64c0533c04 100644 --- a/apps/common/main/lib/component/DataView.js +++ b/apps/common/main/lib/component/DataView.js @@ -575,11 +575,11 @@ define([ if (div.length<=0) return; var div_top = div.offset().top; - if (div_top < inner_top || div_top+div.outerHeight() > inner_top + innerEl.height()) { + if (div_top < inner_top+div[0].offsetTop || div_top+div.outerHeight() > inner_top + innerEl.height()) { if (this.scroller && this.allowScrollbar) { - this.scroller.scrollTop(innerEl.scrollTop() + div_top - inner_top, 0); + this.scroller.scrollTop(innerEl.scrollTop() + div_top - inner_top - div[0].offsetTop, 0); } else { - innerEl.scrollTop(innerEl.scrollTop() + div_top - inner_top); + innerEl.scrollTop(innerEl.scrollTop() + div_top - inner_top - div[0].offsetTop); } } }, diff --git a/apps/common/main/lib/component/Layout.js b/apps/common/main/lib/component/Layout.js index c802f1a1ab..4fe76c3070 100644 --- a/apps/common/main/lib/component/Layout.js +++ b/apps/common/main/lib/component/Layout.js @@ -370,7 +370,7 @@ define([ setResizeValue: function (index, value) { if (index >= this.splitters.length) - return; + return false; var panel = null, next = null, oldValue = 0, resize = this.splitters[index].resizer, @@ -405,6 +405,7 @@ define([ if (resize.value != value) { this.doLayout(); } + return (Math.abs(oldValue-value)>0.99); } }); diff --git a/apps/common/main/lib/template/CommentsPopover.template b/apps/common/main/lib/template/CommentsPopover.template index e967973337..20f185e2eb 100644 --- a/apps/common/main/lib/template/CommentsPopover.template +++ b/apps/common/main/lib/template/CommentsPopover.template @@ -5,7 +5,7 @@
<%=scope.getUserName(username)%>
<%=date%>
<% if (!editTextInPopover || hint) { %> - + <% } else { %>
@@ -27,7 +27,7 @@
<%=scope.getUserName(item.get("username"))%>
<%=item.get("date")%>
<% if (!item.get("editTextInPopover")) { %> - + <% if (!hint) { %>
<% if (item.get("editable")) { %> diff --git a/apps/common/main/lib/view/Chat.js b/apps/common/main/lib/view/Chat.js index 53c90cefb8..8d5a6212ad 100644 --- a/apps/common/main/lib/view/Chat.js +++ b/apps/common/main/lib/view/Chat.js @@ -389,6 +389,7 @@ define([ if (event && 0 == textBox.val().length) { this.layout.setResizeValue(1, Math.max(this.addMessageBoxHeight, height - this.addMessageBoxHeight)); this.textBoxAutoSizeLocked = undefined; + this.updateScrolls(); return; } @@ -409,9 +410,8 @@ define([ height = this.panelBox.height(); - this.layout.setResizeValue(1, - Math.max(this.addMessageBoxHeight, - Math.min(height - contentHeight - textBoxMinHeightIndent, height - this.addMessageBoxHeight))); + if (this.layout.setResizeValue(1, Math.max(this.addMessageBoxHeight, Math.min(height - contentHeight - textBoxMinHeightIndent, height - this.addMessageBoxHeight)))) + this.updateScrolls(); // update when resize position changed }, updateScrolls: function () { diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 8752a11d2e..bbac3ac3e2 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -148,7 +148,8 @@ define([ "Odd Page ": this.txtOddPage, "Same as Previous": this.txtSameAsPrev, "Current Document": this.txtCurrentDocument, - "No table of contents entries found.": this.txtNoTableOfContents + "No table of contents entries found.": this.txtNoTableOfContents, + "Table of Contents": this.txtTableOfContents }; styleNames.forEach(function(item){ translate[item] = me.translationTable[item] = me['txtStyle_' + item.replace(/ /g, '_')] || item; @@ -2243,6 +2244,7 @@ define([ txtCurrentDocument: "Current Document", warnNoLicenseUsers: 'This version of ONLYOFFICE Editors has certain limitations for concurrent users.
If you need more please consider upgrading your current license or purchasing a commercial one.', txtNoTableOfContents: "No table of contents entries found.", + txtTableOfContents: "Table of Contents", errorForceSave: "An error occurred while saving the file. Please use the 'Download as' option to save the file to your computer hard drive or try again later." } })(), DE.Controllers.Main || {})) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 471cbcccde..6af47e7947 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -568,6 +568,8 @@ define([ }, onApiPageSize: function(w, h) { + if (this._state.pgorient===undefined) return; + var width = this._state.pgorient ? w : h, height = this._state.pgorient ? h : w; if (Math.abs(this._state.pgsize[0] - w) > 0.01 || diff --git a/apps/documenteditor/main/app/template/LeftMenu.template b/apps/documenteditor/main/app/template/LeftMenu.template index ad40fa7e82..01f72350d9 100644 --- a/apps/documenteditor/main/app/template/LeftMenu.template +++ b/apps/documenteditor/main/app/template/LeftMenu.template @@ -15,7 +15,7 @@