Skip to content

Commit

Permalink
feat: #INFR-11827 gantt custom global style configurations test
Browse files Browse the repository at this point in the history
  • Loading branch information
hjm100 committed Mar 13, 2024
1 parent 6119ee5 commit 69be58e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<span class="today-line" *ngIf="ganttUpper.showTodayLine"> </span>
</div>

<svg class="gantt-calendar-grid-main" [attr.width.px]="view.width" [attr.height.px]="ganttUpper.styles.headerHeight - 1">
<svg class="gantt-calendar-grid-main" [attr.width]="view.width" [attr.height]="ganttUpper.styles.headerHeight - 1">
<g>
<g *ngIf="view.showTimeline">
<line
Expand Down
2 changes: 2 additions & 0 deletions packages/gantt/src/test/gantt.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const config = {
yearQuarter: 'yyyy/QQQ'
},
styleOptions: {
headerHeight: 60,
lineHeight: 60,
barHeight: 30
}
Expand Down Expand Up @@ -320,6 +321,7 @@ function assertGroups<T extends TestGanttComponentBase>(fixture: ComponentFixtur

function assertConfigStyle(ganttComponent: NgxGanttComponent, ganttDebugElement: DebugElement) {
const styleOptionsBindElement = {
headerHeight: ['.gantt-calendar-header', '.gantt-table-header'],
lineHeight: ['.gantt-item', '.gantt-table-item', '.gantt-group', '.gantt-table-group'],
barHeight: ['.gantt-bar']
};
Expand Down

0 comments on commit 69be58e

Please sign in to comment.