Skip to content

Commit

Permalink
Work for #5551 - Implement TOC navigation - fix vr-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Feb 20, 2023
1 parent 4e5ab54 commit 7f1f51f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/defaultCss/defaultV2Css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export var defaultV2Css = {
container: "sd-container-modern sv-components-column",
header: "sd-title sd-container-modern__title",
bodyContainer: "sv-components-row",
body: "sd-body sv-components-column",
body: "sv-components-column sd-body",
bodyWithTimer: "sd-body--with-timer",
clockTimerRoot: "sd-timer",
clockTimerRootTop: "sd-timer--top",
Expand Down
4 changes: 2 additions & 2 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7223,12 +7223,12 @@ export class SurveyModel extends SurveyElementCore
}
} else if(isStrCiEqual(addon.id, "navigation")) {
if(container === "innertop") {
if(this.isNavigationButtonsShowingOnTop) {
if(["top", "both"].indexOf(this.showNavigationButtons) !== -1 && this.isNavigationButtonsShowingOnTop) {
addons.push(addon);
}
}
if(container === "innerbottom") {
if(this.isNavigationButtonsShowingOnBottom) {
if(["bottom", "both"].indexOf(this.showNavigationButtons) !== -1 && this.isNavigationButtonsShowingOnBottom) {
addons.push(addon);
}
}
Expand Down

0 comments on commit 7f1f51f

Please sign in to comment.