diff --git a/apps/spreadsheeteditor/main/app/controller/CellEditor.js b/apps/spreadsheeteditor/main/app/controller/CellEditor.js index 67b477e03d..a952c30a76 100644 --- a/apps/spreadsheeteditor/main/app/controller/CellEditor.js +++ b/apps/spreadsheeteditor/main/app/controller/CellEditor.js @@ -209,6 +209,7 @@ define([ this.editor.$btnexpand['removeClass']('btn-collapse'); o && Common.localStorage.setBool('sse-celleditor-expand', false); } + this.onCellEditorTextChange(); } }, diff --git a/apps/spreadsheeteditor/main/app/view/CellEditor.js b/apps/spreadsheeteditor/main/app/view/CellEditor.js index cc80ba626f..cbf492f741 100644 --- a/apps/spreadsheeteditor/main/app/view/CellEditor.js +++ b/apps/spreadsheeteditor/main/app/view/CellEditor.js @@ -118,8 +118,8 @@ define([ var btnexpandParent = this.$btnexpand.parent()[0]; if(this.$cellcontent[0].clientHeight != this.$cellcontent[0].scrollHeight) { var scrollBarWidth = this.$cellcontent[0].offsetWidth - this.$cellcontent[0].clientWidth; - btnexpandParent.style.right = Common.UI.isRTL() ? "auto" : scrollBarWidth + "px"; - btnexpandParent.style.left = Common.UI.isRTL() ? scrollBarWidth + "px" : "auto"; + btnexpandParent.style.right = Common.UI.isRTL() ? '' : scrollBarWidth + "px"; + btnexpandParent.style.left = Common.UI.isRTL() ? scrollBarWidth + "px" : ''; } else { btnexpandParent.style.right = '';