From c0813053ccaff23af07201964d84ac348a5e0337 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 2 Jun 2020 12:42:07 +0300 Subject: [PATCH] [SSE] Refactoring text orientation in shape --- .../spreadsheeteditor/main/app/controller/Toolbar.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index dfaddf1ea..fcd069d2a 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -785,17 +785,6 @@ define([ }, onTextOrientationMenu: function(menu, item) { - if (this.api.asc_getCellInfo().asc_getSelectionType() == Asc.c_oAscSelectionType.RangeShapeText) { - var angle = Asc.c_oAscVertDrawingText.normal; - switch (item.value) { - case 'rotateup': angle = Asc.c_oAscVertDrawingText.vert270; break; - case 'rotatedown': angle = Asc.c_oAscVertDrawingText.vert; break; - } - - var properties = new Asc.asc_CImgProperty(); - properties.asc_putVert(angle); - this.api.asc_setGraphicObjectProps(properties); - } else { var angle = 0; switch (item.value) { @@ -809,7 +798,6 @@ define([ this._state.angle = undefined; if (this.api) this.api.asc_setCellAngle(angle); - } Common.NotificationCenter.trigger('edit:complete', this.toolbar); Common.component.Analytics.trackEvent('ToolBar', 'Text orientation');