Calc: Filter with split panes improvement.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com> Change-Id: I866edb95f55d8b16a6ce3ba4e0cb4bbaa79e182d
This commit is contained in:
parent
40ff6989fe
commit
84e003fdd6
1 changed files with 6 additions and 2 deletions
|
@ -756,7 +756,9 @@ L.CalcTileLayer = L.CanvasTileLayer.extend({
|
|||
this._updateHeadersGridLines(undefined, true /* updateCols */,
|
||||
true /* updateRows */);
|
||||
|
||||
this.dontSendSplitPosToCore = true;
|
||||
this.setSplitPosFromCell();
|
||||
this.dontSendSplitPosToCore = false;
|
||||
|
||||
this._syncTileContainerSize();
|
||||
|
||||
|
@ -1189,8 +1191,10 @@ L.CalcSplitPanesContext = L.SplitPanesContext.extend({
|
|||
var newSplitCell = this._docLayer.sheetGeometry.getCellFromPos(this._splitPos, 'corepixels');
|
||||
|
||||
// Send new state via uno commands if there is any change.
|
||||
this.setSplitCol(newSplitCell.x) && this._docLayer.sendSplitIndex(newSplitCell.x, true /* isSplitCol */);
|
||||
this.setSplitRow(newSplitCell.y) && this._docLayer.sendSplitIndex(newSplitCell.y, false /* isSplitCol */);
|
||||
if (!this._docLayer.dontSendSplitPosToCore) {
|
||||
this.setSplitCol(newSplitCell.x) && this._docLayer.sendSplitIndex(newSplitCell.x, true /* isSplitCol */);
|
||||
this.setSplitRow(newSplitCell.y) && this._docLayer.sendSplitIndex(newSplitCell.y, false /* isSplitCol */);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue