[DE] Fix Bug 50920
This commit is contained in:
parent
67397c762d
commit
bd3629838e
|
@ -1227,8 +1227,12 @@ define([
|
||||||
|
|
||||||
onHorizontalAlign: function(type, btn, e) {
|
onHorizontalAlign: function(type, btn, e) {
|
||||||
this._state.pralign = undefined;
|
this._state.pralign = undefined;
|
||||||
if (this.api)
|
if (this.api) {
|
||||||
|
if (!btn.pressed) {
|
||||||
|
type = (type==1) ? 3 : 1;
|
||||||
|
}
|
||||||
this.api.put_PrAlign(type);
|
this.api.put_PrAlign(type);
|
||||||
|
}
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||||
Common.component.Analytics.trackEvent('ToolBar', 'Align');
|
Common.component.Analytics.trackEvent('ToolBar', 'Align');
|
||||||
|
|
|
@ -311,7 +311,6 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-left',
|
iconCls: 'toolbar__icon btn-align-left',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
allowDepress: false,
|
|
||||||
toggleGroup: 'alignGroup'
|
toggleGroup: 'alignGroup'
|
||||||
});
|
});
|
||||||
this.paragraphControls.push(this.btnAlignLeft);
|
this.paragraphControls.push(this.btnAlignLeft);
|
||||||
|
@ -321,7 +320,6 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-center',
|
iconCls: 'toolbar__icon btn-align-center',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
allowDepress: false,
|
|
||||||
toggleGroup: 'alignGroup'
|
toggleGroup: 'alignGroup'
|
||||||
});
|
});
|
||||||
this.paragraphControls.push(this.btnAlignCenter);
|
this.paragraphControls.push(this.btnAlignCenter);
|
||||||
|
@ -331,7 +329,6 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-right',
|
iconCls: 'toolbar__icon btn-align-right',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
allowDepress: false,
|
|
||||||
toggleGroup: 'alignGroup'
|
toggleGroup: 'alignGroup'
|
||||||
});
|
});
|
||||||
this.paragraphControls.push(this.btnAlignRight);
|
this.paragraphControls.push(this.btnAlignRight);
|
||||||
|
@ -341,12 +338,10 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-just',
|
iconCls: 'toolbar__icon btn-align-just',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
allowDepress: false,
|
|
||||||
toggleGroup: 'alignGroup'
|
toggleGroup: 'alignGroup'
|
||||||
});
|
});
|
||||||
this.paragraphControls.push(this.btnAlignJust);
|
this.paragraphControls.push(this.btnAlignJust);
|
||||||
|
|
||||||
|
|
||||||
this.btnDecLeftOffset = new Common.UI.Button({
|
this.btnDecLeftOffset = new Common.UI.Button({
|
||||||
id: 'id-toolbar-btn-decoffset',
|
id: 'id-toolbar-btn-decoffset',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
|
|
Loading…
Reference in a new issue