[SSE] Fix bug 53737
This commit is contained in:
parent
c94249e1ac
commit
dcc7f293be
|
@ -857,6 +857,13 @@ define([
|
||||||
this.tabBarBox.css('right', '0px');
|
this.tabBarBox.css('right', '0px');
|
||||||
}
|
}
|
||||||
this.boxZoom.find('.separator').css('border-left-color', visible ? '' : 'transparent');
|
this.boxZoom.find('.separator').css('border-left-color', visible ? '' : 'transparent');
|
||||||
|
|
||||||
|
if (this.statusMessage) {
|
||||||
|
var status = this.getStatusMessage(this.statusMessage);
|
||||||
|
if (status !== this.boxAction.text().trim()) {
|
||||||
|
this.labelAction.text(status);
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
updateVisibleItemsBoxMath: function () {
|
updateVisibleItemsBoxMath: function () {
|
||||||
|
@ -961,8 +968,19 @@ define([
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getStatusMessage: function (message) {
|
||||||
|
var _message;
|
||||||
|
if (this.isCompact && message.length > 17 && this.boxAction.width() < 180) {
|
||||||
|
_message = message.substr(0, 17) + '...'
|
||||||
|
} else {
|
||||||
|
_message = message;
|
||||||
|
}
|
||||||
|
return _message;
|
||||||
|
},
|
||||||
|
|
||||||
showStatusMessage: function(message) {
|
showStatusMessage: function(message) {
|
||||||
this.labelAction.text(message);
|
this.statusMessage = message;
|
||||||
|
this.labelAction.text(this.getStatusMessage(message));
|
||||||
this.customizeStatusBarMenu.items.forEach(function (item) {
|
this.customizeStatusBarMenu.items.forEach(function (item) {
|
||||||
if (item.options.id === 'saved-status') {
|
if (item.options.id === 'saved-status') {
|
||||||
item.options.exampleval = message;
|
item.options.exampleval = message;
|
||||||
|
@ -981,6 +999,7 @@ define([
|
||||||
|
|
||||||
clearStatusMessage: function() {
|
clearStatusMessage: function() {
|
||||||
this.labelAction.text('');
|
this.labelAction.text('');
|
||||||
|
this.statusMessage = undefined;
|
||||||
},
|
},
|
||||||
|
|
||||||
sheetIndexText : 'Sheet {0} of {1}',
|
sheetIndexText : 'Sheet {0} of {1}',
|
||||||
|
|
Loading…
Reference in a new issue