Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

182
Vistas
Angular2 mdldialogservice scroll content

I am using MdlDialogService to open a help dialog from my home component:

openHelpDialog(){

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

    })
}

And in my app component:

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

Now when I have a lot of help content then the modal height is simply chopped:

enter image description here

How can I limit the height to a certain % and then use scrolling to see the content?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Use css max hight proprty. css max hegight property

max-height: 250px for styles property.

over 4 years ago · Santiago Trujillo Denunciar

0

I just added max-height in style like following:

    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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda