Merge branch 'release/v5.1.0' into feature/documentation-translations
This commit is contained in:
commit
af96bd4c5d
|
@ -575,11 +575,11 @@ define([
|
||||||
if (div.length<=0) return;
|
if (div.length<=0) return;
|
||||||
|
|
||||||
var div_top = div.offset().top;
|
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) {
|
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 {
|
} else {
|
||||||
innerEl.scrollTop(innerEl.scrollTop() + div_top - inner_top);
|
innerEl.scrollTop(innerEl.scrollTop() + div_top - inner_top - div[0].offsetTop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -370,7 +370,7 @@ define([
|
||||||
|
|
||||||
setResizeValue: function (index, value) {
|
setResizeValue: function (index, value) {
|
||||||
if (index >= this.splitters.length)
|
if (index >= this.splitters.length)
|
||||||
return;
|
return false;
|
||||||
|
|
||||||
var panel = null, next = null, oldValue = 0,
|
var panel = null, next = null, oldValue = 0,
|
||||||
resize = this.splitters[index].resizer,
|
resize = this.splitters[index].resizer,
|
||||||
|
@ -405,6 +405,7 @@ define([
|
||||||
if (resize.value != value) {
|
if (resize.value != value) {
|
||||||
this.doLayout();
|
this.doLayout();
|
||||||
}
|
}
|
||||||
|
return (Math.abs(oldValue-value)>0.99);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="user-name"><%=scope.getUserName(username)%></div>
|
<div class="user-name"><%=scope.getUserName(username)%></div>
|
||||||
<div class="user-date"><%=date%></div>
|
<div class="user-date"><%=date%></div>
|
||||||
<% if (!editTextInPopover || hint) { %>
|
<% if (!editTextInPopover || hint) { %>
|
||||||
<textarea readonly class="user-message user-select"><%=scope.pickLink(comment)%></textarea>
|
<textarea readonly class="user-message user-select" style="overflow: hidden;" maxlength="maxCommLength"><%=scope.pickLink(comment)%></textarea>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<div class="inner-edit-ct">
|
<div class="inner-edit-ct">
|
||||||
<textarea class="msg-reply user-select" maxlength="maxCommLength"><%=comment%></textarea>
|
<textarea class="msg-reply user-select" maxlength="maxCommLength"><%=comment%></textarea>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<div class="user-name"><%=scope.getUserName(item.get("username"))%></div>
|
<div class="user-name"><%=scope.getUserName(item.get("username"))%></div>
|
||||||
<div class="user-date"><%=item.get("date")%></div>
|
<div class="user-date"><%=item.get("date")%></div>
|
||||||
<% if (!item.get("editTextInPopover")) { %>
|
<% if (!item.get("editTextInPopover")) { %>
|
||||||
<textarea readonly class="user-message user-select"><%=scope.pickLink(item.get("reply"))%></textarea>
|
<textarea readonly class="user-message user-select" maxlength="maxCommLength" style="overflow: hidden;"><%=scope.pickLink(item.get("reply"))%></textarea>
|
||||||
<% if (!hint) { %>
|
<% if (!hint) { %>
|
||||||
<div class="btns-reply-ct">
|
<div class="btns-reply-ct">
|
||||||
<% if (item.get("editable")) { %>
|
<% if (item.get("editable")) { %>
|
||||||
|
|
|
@ -389,6 +389,7 @@ define([
|
||||||
if (event && 0 == textBox.val().length) {
|
if (event && 0 == textBox.val().length) {
|
||||||
this.layout.setResizeValue(1, Math.max(this.addMessageBoxHeight, height - this.addMessageBoxHeight));
|
this.layout.setResizeValue(1, Math.max(this.addMessageBoxHeight, height - this.addMessageBoxHeight));
|
||||||
this.textBoxAutoSizeLocked = undefined;
|
this.textBoxAutoSizeLocked = undefined;
|
||||||
|
this.updateScrolls();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -409,9 +410,8 @@ define([
|
||||||
|
|
||||||
height = this.panelBox.height();
|
height = this.panelBox.height();
|
||||||
|
|
||||||
this.layout.setResizeValue(1,
|
if (this.layout.setResizeValue(1, Math.max(this.addMessageBoxHeight, Math.min(height - contentHeight - textBoxMinHeightIndent, height - this.addMessageBoxHeight))))
|
||||||
Math.max(this.addMessageBoxHeight,
|
this.updateScrolls(); // update when resize position changed
|
||||||
Math.min(height - contentHeight - textBoxMinHeightIndent, height - this.addMessageBoxHeight)));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
updateScrolls: function () {
|
updateScrolls: function () {
|
||||||
|
|
|
@ -148,7 +148,8 @@ define([
|
||||||
"Odd Page ": this.txtOddPage,
|
"Odd Page ": this.txtOddPage,
|
||||||
"Same as Previous": this.txtSameAsPrev,
|
"Same as Previous": this.txtSameAsPrev,
|
||||||
"Current Document": this.txtCurrentDocument,
|
"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){
|
styleNames.forEach(function(item){
|
||||||
translate[item] = me.translationTable[item] = me['txtStyle_' + item.replace(/ /g, '_')] || item;
|
translate[item] = me.translationTable[item] = me['txtStyle_' + item.replace(/ /g, '_')] || item;
|
||||||
|
@ -2243,6 +2244,7 @@ define([
|
||||||
txtCurrentDocument: "Current Document",
|
txtCurrentDocument: "Current Document",
|
||||||
warnNoLicenseUsers: 'This version of ONLYOFFICE Editors has certain limitations for concurrent users.<br>If you need more please consider upgrading your current license or purchasing a commercial one.',
|
warnNoLicenseUsers: 'This version of ONLYOFFICE Editors has certain limitations for concurrent users.<br>If you need more please consider upgrading your current license or purchasing a commercial one.',
|
||||||
txtNoTableOfContents: "No table of contents entries found.",
|
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."
|
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 || {}))
|
})(), DE.Controllers.Main || {}))
|
||||||
|
|
|
@ -568,6 +568,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiPageSize: function(w, h) {
|
onApiPageSize: function(w, h) {
|
||||||
|
if (this._state.pgorient===undefined) return;
|
||||||
|
|
||||||
var width = this._state.pgorient ? w : h,
|
var width = this._state.pgorient ? w : h,
|
||||||
height = this._state.pgorient ? h : w;
|
height = this._state.pgorient ? h : w;
|
||||||
if (Math.abs(this._state.pgsize[0] - w) > 0.01 ||
|
if (Math.abs(this._state.pgsize[0] - w) > 0.01 ||
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<div id="left-panel-comments" class="" style="display: none;" />
|
<div id="left-panel-comments" class="" style="display: none;" />
|
||||||
<div id="left-panel-chat" class="" style="display: none;" />
|
<div id="left-panel-chat" class="" style="display: none;" />
|
||||||
<!-- /** coauthoring end **/ -->
|
<!-- /** coauthoring end **/ -->
|
||||||
<div id="left-panel-plugins" class="" style="display: none; height: 100%;" />
|
|
||||||
<div id="left-panel-navigation" class="" style="display: none; height: 100%;" />
|
<div id="left-panel-navigation" class="" style="display: none; height: 100%;" />
|
||||||
|
<div id="left-panel-plugins" class="" style="display: none; height: 100%;" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -146,7 +146,6 @@ define([
|
||||||
ChangeSettings: function(props) {
|
ChangeSettings: function(props) {
|
||||||
},
|
},
|
||||||
|
|
||||||
strNavigate: 'Table of Contents',
|
|
||||||
txtPromote: 'Promote',
|
txtPromote: 'Promote',
|
||||||
txtDemote: 'Demote',
|
txtDemote: 'Demote',
|
||||||
txtHeadingBefore: 'New heading before',
|
txtHeadingBefore: 'New heading before',
|
||||||
|
|
|
@ -398,6 +398,7 @@
|
||||||
"DE.Controllers.Main.txtMath": "Math",
|
"DE.Controllers.Main.txtMath": "Math",
|
||||||
"DE.Controllers.Main.txtNeedSynchronize": "You have updates",
|
"DE.Controllers.Main.txtNeedSynchronize": "You have updates",
|
||||||
"DE.Controllers.Main.txtNoTableOfContents": "No table of contents entries found.",
|
"DE.Controllers.Main.txtNoTableOfContents": "No table of contents entries found.",
|
||||||
|
"DE.Controllers.Main.txtTableOfContents": "Table of Contents",
|
||||||
"DE.Controllers.Main.txtOddPage": "Odd Page ",
|
"DE.Controllers.Main.txtOddPage": "Odd Page ",
|
||||||
"DE.Controllers.Main.txtOnPage": "on page ",
|
"DE.Controllers.Main.txtOnPage": "on page ",
|
||||||
"DE.Controllers.Main.txtRectangles": "Rectangles",
|
"DE.Controllers.Main.txtRectangles": "Rectangles",
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
@ -214,4 +214,4 @@
|
||||||
|
|
||||||
.button-normal-icon(btn-ic-zoomtowidth, 55, @toolbar-icon-size);
|
.button-normal-icon(btn-ic-zoomtowidth, 55, @toolbar-icon-size);
|
||||||
.button-normal-icon(btn-ic-zoomtopage, 56, @toolbar-icon-size);
|
.button-normal-icon(btn-ic-zoomtopage, 56, @toolbar-icon-size);
|
||||||
.button-normal-icon(btn-ic-changes, 68, @toolbar-icon-size);
|
.button-normal-icon(btn-ic-changes, 30, @toolbar-icon-size);
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
"expand": true,
|
"expand": true,
|
||||||
"cwd": "../../sdkjs/common/",
|
"cwd": "../../sdkjs/common/",
|
||||||
"src": [
|
"src": [
|
||||||
"Images/*.cur",
|
"Images/*",
|
||||||
"Native/*.js"
|
"Native/*.js"
|
||||||
],
|
],
|
||||||
"dest": "../deploy/sdkjs/common/"
|
"dest": "../deploy/sdkjs/common/"
|
||||||
|
|
Loading…
Reference in a new issue