Skip to content

Commit

Permalink
Matrix with detail - no headers, icons cut
Browse files Browse the repository at this point in the history
Fixes #6782
  • Loading branch information
Aleksey Novikov committed Aug 23, 2023
1 parent 7cb458a commit a696170
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/defaultV2-theme/blocks/sd-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@
width: calcSize(1);
&:not(.sd-table__cell--drag):first-of-type {
padding-left: 0;
width: calcSize(5);
min-width: calcSize(5);
}
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions visualRegressionTests/tests/defaultV2/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@ frameworks.forEach(framework => {

await takeElementScreenshot("question-matrix-dropdown-detail-expanded.png", questionRoot, t, comparer);

await ClientFunction(() => { window["survey"].getQuestionByName("q").showHeader = false; })();
await takeElementScreenshot("question-matrix-dropdown-detail-no-header-expanded.png", questionRoot, t, comparer);

await t.click(Selector(".sd-table__cell--detail-button").filterVisible().nth(1));
await t.hover(questionRoot, { offsetX: 1, offsetY: 1 });

await takeElementScreenshot("question-matrix-dropdown-detail-no-header.png", questionRoot, t, comparer);
});
});

Expand Down

0 comments on commit a696170

Please sign in to comment.