From 0f08fce1d5e9490405b80ef0d3a8cc3335ac2d8f Mon Sep 17 00:00:00 2001 From: Aleksey Novikov Date: Sun, 13 Aug 2023 21:46:02 +0300 Subject: [PATCH] #6642 Matrix wrong paddings. - empty cell class Fixes #6642 --- src/question_matrixdropdownrendered.ts | 4 ++++ .../snapshots/matrixdropdown-cell-errors-bottom.snap.html | 2 +- .../markup/snapshots/matrixdropdown-cell-errors-top.snap.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/question_matrixdropdownrendered.ts b/src/question_matrixdropdownrendered.ts index 6d094d66ae..18a824e3fd 100644 --- a/src/question_matrixdropdownrendered.ts +++ b/src/question_matrixdropdownrendered.ts @@ -995,6 +995,10 @@ export class QuestionMatrixDropdownRenderedTable extends Base { private createEmptyCell(): QuestionMatrixDropdownRenderedCell { const res = this.createTextCell(null); res.isEmpty = true; + res.className = new CssClassBuilder() + .append(this.cssClasses.cell) + .append(this.cssClasses.emptyCell) + .toString(); return res; } } \ No newline at end of file diff --git a/tests/markup/snapshots/matrixdropdown-cell-errors-bottom.snap.html b/tests/markup/snapshots/matrixdropdown-cell-errors-bottom.snap.html index 3d6bfd119a..bb15f4b988 100644 --- a/tests/markup/snapshots/matrixdropdown-cell-errors-bottom.snap.html +++ b/tests/markup/snapshots/matrixdropdown-cell-errors-bottom.snap.html @@ -23,7 +23,7 @@ - +