[DE] Distribute table rows and columns.
This commit is contained in:
parent
c5ae3b1d01
commit
5854f4ea43
|
@ -2578,16 +2578,16 @@ define([
|
|||
var menuTableDistRows = new Common.UI.MenuItem({
|
||||
caption : me.textDistributeRows
|
||||
}).on('click', _.bind(function(){
|
||||
// if (me.api)
|
||||
// me.api.distributeCols();
|
||||
if (me.api)
|
||||
me.api.asc_DistributeTableCells(false);
|
||||
me.fireEvent('editcomplete', me);
|
||||
}, me));
|
||||
|
||||
var menuTableDistCols = new Common.UI.MenuItem({
|
||||
caption : me.textDistributeCols
|
||||
}).on('click', _.bind(function(){
|
||||
// if (me.api)
|
||||
// me.api.distributeCols();
|
||||
if (me.api)
|
||||
me.api.asc_DistributeTableCells(true);
|
||||
me.fireEvent('editcomplete', me);
|
||||
}, me));
|
||||
|
||||
|
|
|
@ -401,14 +401,16 @@ define([
|
|||
el: $('#table-btn-distrub-rows')
|
||||
});
|
||||
this.lockedControls.push(this.btnDistributeRows);
|
||||
this.btnDistributeRows.on('click', _.bind(function(field, newValue, oldValue, eOpts){
|
||||
this.btnDistributeRows.on('click', _.bind(function(btn){
|
||||
this.api.asc_DistributeTableCells(false);
|
||||
}, this));
|
||||
|
||||
this.btnDistributeCols = new Common.UI.Button({
|
||||
el: $('#table-btn-distrub-cols')
|
||||
});
|
||||
this.lockedControls.push(this.btnDistributeCols);
|
||||
this.btnDistributeCols.on('click', _.bind(function(field, newValue, oldValue, eOpts){
|
||||
this.btnDistributeCols.on('click', _.bind(function(btn){
|
||||
this.api.asc_DistributeTableCells(true);
|
||||
}, this));
|
||||
|
||||
this.linkAdvanced = $('#table-advanced-link');
|
||||
|
|
Loading…
Reference in a new issue