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:
Gökay Şatır 2021-04-06 15:19:30 +03:00 committed by Gökay ŞATIR
parent 40ff6989fe
commit 84e003fdd6

View file

@ -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 */);
}
},
});