Skip to content

Commit

Permalink
show header if "headerView" is "advanced"
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaLarina committed Feb 6, 2024
1 parent ecad04a commit f9cbb53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ng-template #template>
<div *ngIf="(survey.headerView === 'advanced' && survey.renderedHasHeader)" [class]="model.headerClasses" [style]="{ height: model.renderedHeight }">
<div *ngIf="(survey.headerView === 'advanced')" [class]="model.headerClasses" [style]="{ height: model.renderedHeight }">
<div *ngIf="!!model.backgroundImage" [style]="model.backgroundImageStyle" [class]="model.backgroundImageClasses"></div>
<div *ngIf="!survey.isMobile" [class]="model.contentClasses" [style.width]="model.maxWidth">
<ng-container *ngFor="let cell of model.cells">
Expand Down
2 changes: 1 addition & 1 deletion src/knockout/components/header/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- ko if: (survey.headerView === 'advanced' && survey.renderedHasHeader) -->
<!-- ko if: (survey.headerView === 'advanced') -->
<div data-bind="css: model.headerClasses, style: { height: model.renderedHeight }">
<!-- ko if: !!model.backgroundImage -->
<div data-bind="style: model.backgroundImageStyle, css: model.backgroundImageClasses"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/react/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class Header extends SurveyElementBase<ILayoutElementProps<Cover>, any> {
renderElement(): JSX.Element | null {
this.model.survey = this.props.survey;

if(!(this.props.survey.headerView === "advanced" && this.props.survey.renderedHasHeader)) {
if(!(this.props.survey.headerView === "advanced")) {
return null;
}

Expand Down

0 comments on commit f9cbb53

Please sign in to comment.