diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 5d6fef4d8..f0212a263 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -3254,7 +3254,7 @@ define([ onImgAlignSelect: function(menu, item) { if (this.api) - // this.api.asc_setSelectedDrawingObjectLayer(item.value); + this.api.asc_setSelectedDrawingObjectAlign(item.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); Common.component.Analytics.trackEvent('ToolBar', 'Objects Align'); }, diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 2ad437e27..dcee358b6 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -2154,27 +2154,27 @@ define([ items: [{ caption : _holder_view.textShapeAlignLeft, iconCls : 'mnu-img-align-left', - // halign : Asc.c_oAscAlignH.Left + value : 0 }, { caption : _holder_view.textShapeAlignCenter, iconCls : 'mnu-img-align-center', - // halign : Asc.c_oAscAlignH.Center + value : 4 }, { caption : _holder_view.textShapeAlignRight, iconCls : 'mnu-img-align-right', - // halign : Asc.c_oAscAlignH.Right + value : 1 }, { caption : _holder_view.textShapeAlignTop, iconCls : 'mnu-img-align-top', - // valign : Asc.c_oAscAlignV.Top + value : 3 }, { caption : _holder_view.textShapeAlignMiddle, iconCls : 'mnu-img-align-middle', - // valign : Asc.c_oAscAlignV.Center + value : 5 }, { caption : _holder_view.textShapeAlignBottom, iconCls : 'mnu-img-align-bottom', - // valign : Asc.c_oAscAlignV.Bottom + value : 2 }] }));