Skip to content

Commit

Permalink
[se] Background cell fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaZotov committed Nov 21, 2024
1 parent 23013ac commit 1301d3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cell/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2410,10 +2410,10 @@
let api = window.Asc.editor;
let wb = api && api.wb;
let ws = wb.getWorksheet();
if (ws && ws.getRightToLeft()) {
/*if (ws && ws.getRightToLeft()) {
oMatrix.sx = -1;
oMatrix.tx = (ws.getCtxWidth() * vector_koef) - oMatrix.tx;
}
}*/
graphics.transform3(oMatrix);
var shapeDrawer = new AscCommon.CShapeDrawer();
shapeDrawer.Graphics = graphics;
Expand Down
6 changes: 3 additions & 3 deletions cell/view/WorksheetView.js
Original file line number Diff line number Diff line change
Expand Up @@ -5862,7 +5862,7 @@
fill = new AscCommonExcel.Fill();
fill.fromColor(findFillColor);
}
AscCommonExcel.drawFillCell(ctx, graphics, fill, new AscCommon.asc_CRect(x - offsetX, y - offsetY, w, h));
AscCommonExcel.drawFillCell(ctx, graphics, fill, new AscCommon.asc_CRect((this.getRightToLeft() ? (this.getCtxWidth(ctx) - x - w) : x) - offsetX, y - offsetY, w, h));
}

if (this.isPageBreakPreview(true) && mc) {
Expand All @@ -5879,7 +5879,7 @@

let _fill = new AscCommonExcel.Fill();
_fill.fromColor(this.settings.cells.defaultState.border);
AscCommonExcel.drawFillCell(ctx, graphics, _fill, new AscCommon.asc_CRect(_x - offsetX, _y - offsetY, _w, _h));
AscCommonExcel.drawFillCell(ctx, graphics, _fill, new AscCommon.asc_CRect((this.getRightToLeft() ? (this.getCtxWidth(ctx) - _x - w) : _x) - offsetX, _y - offsetY, _w, _h));
}
}
}
Expand Down Expand Up @@ -6069,7 +6069,7 @@
} else {
fill.fromColor(color);
}
AscCommonExcel.drawFillCell(ctx, graphics, fill, new AscCommon.asc_CRect(x, top, dataBarLength, height - 3));
AscCommonExcel.drawFillCell(ctx, graphics, fill, new AscCommon.asc_CRect((this.getRightToLeft() ? (this.getCtxWidth(ctx) - x - dataBarLength) : x), top, dataBarLength, height - 3));

var color = (isPositive || oRuleElement.NegativeBarBorderColorSameAsPositive) ? oRuleElement.BorderColor : oRuleElement.NegativeBorderColor;
if (color) {
Expand Down

0 comments on commit 1301d3a

Please sign in to comment.