[DE] Fix Bug 50920

This commit is contained in:
Julia Radzhabova 2021-06-18 15:24:44 +03:00
parent 67397c762d
commit bd3629838e
2 changed files with 5 additions and 6 deletions

View file

@ -1227,8 +1227,12 @@ define([
onHorizontalAlign: function(type, btn, e) {
this._state.pralign = undefined;
if (this.api)
if (this.api) {
if (!btn.pressed) {
type = (type==1) ? 3 : 1;
}
this.api.put_PrAlign(type);
}
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
Common.component.Analytics.trackEvent('ToolBar', 'Align');

View file

@ -311,7 +311,6 @@ define([
cls: 'btn-toolbar',
iconCls: 'toolbar__icon btn-align-left',
enableToggle: true,
allowDepress: false,
toggleGroup: 'alignGroup'
});
this.paragraphControls.push(this.btnAlignLeft);
@ -321,7 +320,6 @@ define([
cls: 'btn-toolbar',
iconCls: 'toolbar__icon btn-align-center',
enableToggle: true,
allowDepress: false,
toggleGroup: 'alignGroup'
});
this.paragraphControls.push(this.btnAlignCenter);
@ -331,7 +329,6 @@ define([
cls: 'btn-toolbar',
iconCls: 'toolbar__icon btn-align-right',
enableToggle: true,
allowDepress: false,
toggleGroup: 'alignGroup'
});
this.paragraphControls.push(this.btnAlignRight);
@ -341,12 +338,10 @@ define([
cls: 'btn-toolbar',
iconCls: 'toolbar__icon btn-align-just',
enableToggle: true,
allowDepress: false,
toggleGroup: 'alignGroup'
});
this.paragraphControls.push(this.btnAlignJust);
this.btnDecLeftOffset = new Common.UI.Button({
id: 'id-toolbar-btn-decoffset',
cls: 'btn-toolbar',