我正在构建一个带角度的Twitter克隆,我希望单击Twitter时出现的对话框的滚动条像Twitter一样位于浏览器的最右侧,而不是滚动条溢出
我尝试不设置对话框的宽度,但不能解决滚动条溢出问题
openDialog(kweek: Kweek): void {
this.roots.push(kweek);
this.popUpMode = true;
const dialogConfig = new MatDialogConfig();
dialogConfig.width = '640px';
dialogConfig.data = { roots: this.roots };
const dialogRef = this.dialog.open(ReplyComponent, dialogConfig);
dialogRef.componentInstance.roots = this.roots;
dialogRef.afterClosed().subscribe(result => {
this.roots = [];
});