[DE] Distribute table rows and columns.

This commit is contained in:
Julia Radzhabova 2018-01-26 11:02:37 +03:00
parent c5ae3b1d01
commit 5854f4ea43
2 changed files with 8 additions and 6 deletions

View file

@ -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));

View file

@ -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');