diff --git a/apps/common/main/lib/component/TabBar.js b/apps/common/main/lib/component/TabBar.js index 8a0a84a0f..19ac737ee 100644 --- a/apps/common/main/lib/component/TabBar.js +++ b/apps/common/main/lib/component/TabBar.js @@ -241,7 +241,7 @@ define([ lockDrag = true; } }); - if (this.bar.selectTabs.length === this.bar.tabs.length || this.bar.tabs.length === 1) { + if (this.bar.selectTabs.length === this.bar.tabs.length || this.bar.tabs.length === 1 || this.bar.isEditFormula) { lockDrag = true; } this.bar.$el.find('ul > li > span').attr('draggable', !lockDrag); diff --git a/apps/spreadsheeteditor/main/app/controller/Statusbar.js b/apps/spreadsheeteditor/main/app/controller/Statusbar.js index 467c902b8..779b1c9d0 100644 --- a/apps/spreadsheeteditor/main/app/controller/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Statusbar.js @@ -208,11 +208,14 @@ define([ statusbar = this.statusbar; statusbar.isEditFormula = disableAdd; + statusbar.tabbar && (statusbar.tabbar.isEditFormula = disableAdd); statusbar.btnZoomUp.setDisabled(disable); statusbar.btnZoomDown.setDisabled(disable); statusbar.labelZoom[disable?'addClass':'removeClass']('disabled'); statusbar.btnAddWorksheet.setDisabled(disable || this.api.asc_isWorkbookLocked() || statusbar.rangeSelectionMode!=Asc.c_oAscSelectionDialogType.None); + statusbar.$el.find('#statusbar_bottom li span').attr('oo_editor_input', !disableAdd); + if (disableAdd && mask.length>0 || !disableAdd && mask.length==0) return; statusbar.$el.find('.statusbar').toggleClass('masked', disableAdd); if(disableAdd) { diff --git a/apps/spreadsheeteditor/main/resources/less/statusbar.less b/apps/spreadsheeteditor/main/resources/less/statusbar.less index 3d03bc64e..650e1cf2c 100644 --- a/apps/spreadsheeteditor/main/resources/less/statusbar.less +++ b/apps/spreadsheeteditor/main/resources/less/statusbar.less @@ -246,10 +246,17 @@ &.mousemove { + &:first-child { + > span { + padding-left: 8px; + } + } + > span { border-left: 2px solid @gray-deep; padding-left: 9px; } + &.right { > span { border-left: 1px solid @gray-dark;