Show Scrollbar in Alert in ionic-v4

#1

How to show scroll bar on alert in ionic v4?

1 Like
Second alert design issue in device ionic-v4
#2

i did hack but i want permanent solution.

const alert = await this.alertController.create({
    header: 'Info',
    mode: 'md',
    message: '<div style="overflow-y:auto;max-height:240px;">texts</div>',
    buttons: [
      {
        text: 'Close',
        role: 'cancel',
        cssClass: 'secondary',
        handler: (blah) => {
          console.log('Confirm Cancel: blah');
        }
      }
    ]
  });
  await alert.present();
}