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

180
Views
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 answers
Answer question

0

Use css max hight proprty. css max hegight property

max-height: 250px for styles property.

over 4 years ago · Santiago Trujillo Report

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 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!