make choice dialog proper scrollable
This commit is contained in:
parent
d49b796b29
commit
1de2161ded
@ -36,6 +36,7 @@ export class ChoiceService extends OpenSlidesComponent {
|
||||
): Promise<ChoiceAnswer> {
|
||||
const dialogRef = this.dialog.open(ChoiceDialogComponent, {
|
||||
minWidth: '250px',
|
||||
maxHeight:'90vh',
|
||||
data: { title: title, choices: choices, multiSelect: multiSelect }
|
||||
});
|
||||
return dialogRef.afterClosed().toPromise();
|
||||
|
@ -1,5 +1,6 @@
|
||||
<h2 mat-dialog-title>{{ data.title | translate }}</h2>
|
||||
<div class="scrollmenu">
|
||||
<div class="scrollmenu-outer">
|
||||
<h2 mat-dialog-title>{{ data.title | translate }}</h2>
|
||||
<div class="scrollmenu">
|
||||
<mat-radio-group
|
||||
#radio
|
||||
name="choice"
|
||||
@ -21,10 +22,11 @@
|
||||
</mat-list>
|
||||
|
||||
<span *ngIf="!data.choices.length" translate>No choices available</span>
|
||||
</div>
|
||||
<mat-dialog-actions>
|
||||
</div>
|
||||
<mat-dialog-actions>
|
||||
<button *ngIf="!data.multiSelect || data.choices.length" mat-button (click)="closeDialog(true)">
|
||||
<span translate>Ok</span>
|
||||
</button>
|
||||
<button mat-button (click)="closeDialog(false)"><span translate>Cancel</span></button>
|
||||
</mat-dialog-actions>
|
||||
</div>
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user