[SSE] Align objects

This commit is contained in:
Julia Radzhabova 2018-07-30 13:10:41 +03:00
parent 996c2f5641
commit c86e3e77c5
2 changed files with 7 additions and 7 deletions

View file

@ -3254,7 +3254,7 @@ define([
onImgAlignSelect: function(menu, item) { onImgAlignSelect: function(menu, item) {
if (this.api) if (this.api)
// this.api.asc_setSelectedDrawingObjectLayer(item.value); this.api.asc_setSelectedDrawingObjectAlign(item.value);
Common.NotificationCenter.trigger('edit:complete', this.toolbar); Common.NotificationCenter.trigger('edit:complete', this.toolbar);
Common.component.Analytics.trackEvent('ToolBar', 'Objects Align'); Common.component.Analytics.trackEvent('ToolBar', 'Objects Align');
}, },

View file

@ -2154,27 +2154,27 @@ define([
items: [{ items: [{
caption : _holder_view.textShapeAlignLeft, caption : _holder_view.textShapeAlignLeft,
iconCls : 'mnu-img-align-left', iconCls : 'mnu-img-align-left',
// halign : Asc.c_oAscAlignH.Left value : 0
}, { }, {
caption : _holder_view.textShapeAlignCenter, caption : _holder_view.textShapeAlignCenter,
iconCls : 'mnu-img-align-center', iconCls : 'mnu-img-align-center',
// halign : Asc.c_oAscAlignH.Center value : 4
}, { }, {
caption : _holder_view.textShapeAlignRight, caption : _holder_view.textShapeAlignRight,
iconCls : 'mnu-img-align-right', iconCls : 'mnu-img-align-right',
// halign : Asc.c_oAscAlignH.Right value : 1
}, { }, {
caption : _holder_view.textShapeAlignTop, caption : _holder_view.textShapeAlignTop,
iconCls : 'mnu-img-align-top', iconCls : 'mnu-img-align-top',
// valign : Asc.c_oAscAlignV.Top value : 3
}, { }, {
caption : _holder_view.textShapeAlignMiddle, caption : _holder_view.textShapeAlignMiddle,
iconCls : 'mnu-img-align-middle', iconCls : 'mnu-img-align-middle',
// valign : Asc.c_oAscAlignV.Center value : 5
}, { }, {
caption : _holder_view.textShapeAlignBottom, caption : _holder_view.textShapeAlignBottom,
iconCls : 'mnu-img-align-bottom', iconCls : 'mnu-img-align-bottom',
// valign : Asc.c_oAscAlignV.Bottom value : 2
}] }]
})); }));