Skip to content

Commit 0ced4d3

Browse files
author
OlgaLarina
committed
resolve #9428 Advanced header: add gap between rows and columns
1 parent 452fc42 commit 0ced4d3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/survey-core/src/default-theme/blocks/header.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
height: 100%;
6161
position: relative;
6262
display: grid;
63-
gap: 0;
6463
// grid-auto-rows: min-content;
6564
grid-template-columns: 1fr 1fr 1fr;
6665
grid-template-rows: 1fr 1fr 1fr;
67-
// row-gap: calcSize(1);
66+
row-gap: var(--lbr-cover-row-gap, var(--lbr-spacing-x150, calcSize(1.5)));
67+
column-gap: var(--lbr-cover-column-gap, var(--lbr-spacing-x6, calcSize(6)));
6868
}
6969

7070
.sv-header--height-auto {

packages/survey-core/src/header.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ export class Cover extends Base {
303303
const headerComputedStyle = DomDocumentHelper.getComputedStyle(headerEl);
304304
const paddingLeft = (parseFloat(headerComputedStyle.paddingLeft) || 0);
305305
const paddingRight = (parseFloat(headerComputedStyle.paddingRight) || 0);
306-
this.width = elWidth - paddingLeft - paddingRight;
306+
const columnGap = (parseFloat(headerComputedStyle.columnGap) || 0);
307+
this.width = elWidth - paddingLeft - paddingRight - 2 * columnGap;
307308
}
308309
}
309310
}

0 commit comments

Comments
 (0)