Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
Contenido de desplazamiento de Angular2 mdldialogservice

Estoy usando MdlDialogService para abrir un cuadro de diálogo de ayuda desde mi componente de inicio:

 openHelpDialog(){ this.dialogService.showCustomDialog({ component: HelpComponent, animate: true, isModal: true, styles: {'width': '500px', 'overflow-y':'scroll'}, clickOutsideToClose: true }) }

Y en mi componente de aplicación:

 <app-home></app-home> <dialog-outlet></dialog-outlet>

Ahora, cuando tengo mucho contenido de ayuda, la altura modal simplemente se corta:

ingrese la descripción de la imagen aquí

¿Cómo puedo limitar la altura a un cierto% y luego usar el desplazamiento para ver el contenido?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Utilice la propiedad css max hight. propiedad altura máxima css

max-height: 250px para la propiedad de estilos.

over 4 years ago · Santiago Trujillo Report

0

Acabo de agregar max-height en estilo como el siguiente:

 this.dialogService.showCustomDialog({ component: HelpComponent, animate: true, isModal: true, styles: {'width': '500px', 'max-height':'500px' ,'overflow-y':'scroll'}, clickOutsideToClose: true })
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!