From 1de2161ded041e5f9fcfff8bf54e4578685c321c Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Thu, 29 Nov 2018 18:20:21 +0100 Subject: [PATCH] make choice dialog proper scrollable --- .../src/app/core/services/choice.service.ts | 1 + .../choice-dialog.component.html | 56 ++++++++++--------- .../choice-dialog.component.scss | 8 ++- 3 files changed, 35 insertions(+), 30 deletions(-) diff --git a/client/src/app/core/services/choice.service.ts b/client/src/app/core/services/choice.service.ts index 358991913..0dda9ebdd 100644 --- a/client/src/app/core/services/choice.service.ts +++ b/client/src/app/core/services/choice.service.ts @@ -36,6 +36,7 @@ export class ChoiceService extends OpenSlidesComponent { ): Promise { const dialogRef = this.dialog.open(ChoiceDialogComponent, { minWidth: '250px', + maxHeight:'90vh', data: { title: title, choices: choices, multiSelect: multiSelect } }); return dialogRef.afterClosed().toPromise(); diff --git a/client/src/app/shared/components/choice-dialog/choice-dialog.component.html b/client/src/app/shared/components/choice-dialog/choice-dialog.component.html index afc62f495..ca7c51c71 100644 --- a/client/src/app/shared/components/choice-dialog/choice-dialog.component.html +++ b/client/src/app/shared/components/choice-dialog/choice-dialog.component.html @@ -1,30 +1,32 @@ -

{{ data.title | translate }}

-
- - - {{ getChoiceTitle(choice) | translate }} - - - - - - +
+

{{ data.title | translate }}

+
+ + {{ getChoiceTitle(choice) | translate }} - - - + + - No choices available -
- - - + + + + {{ getChoiceTitle(choice) | translate }} + + + + + No choices available +
+ + + +
\ No newline at end of file diff --git a/client/src/app/shared/components/choice-dialog/choice-dialog.component.scss b/client/src/app/shared/components/choice-dialog/choice-dialog.component.scss index 0c013a045..a99f46fc3 100644 --- a/client/src/app/shared/components/choice-dialog/choice-dialog.component.scss +++ b/client/src/app/shared/components/choice-dialog/choice-dialog.component.scss @@ -8,8 +8,10 @@ mat-radio-group { } .scrollmenu { - padding: 4px; - overflow-y: auto; + padding: 5px; display: block; - overflow-y: auto; } + +.scrollmenu-outer { + max-height:inherit; +} \ No newline at end of file