question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The dialog popup windows with NbDialogService does not have a scrollbar

See original GitHub issue

Issue type

I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

Current behavior: The dialog popup windows does not have a scrollbar. So, when the content of a dialog window open using the following example (example from NbDialogService

import { Component } from '@angular/core';
import { NbDialogService } from '@nebular/theme';
import { ScrollDialogComponent } from './components/scroll-dialog.component';

@Component({
  selector: 'nb-dialog-scroll',
  template: `
    <button nbButton (click)="openWithScroll()">With scroll</button>
    <button nbButton (click)="openWithoutScroll()">Without scroll</button>
  `,
  styleUrls: ['./dialog-common.scss'],
})
export class DialogScrollComponent {
  constructor(private dialogService: NbDialogService) {
  }

  openWithScroll() {
    this.open(true);
  }

  openWithoutScroll() {
    this.open(false);
  }

  protected open(hasScroll: boolean) {
    this.dialogService.open(ScrollDialogComponent, { hasScroll });
  }
}

does not have any scrollbar.

Expected behavior: If the content of the dialog window is taller than the screen, I should have the scrollbar in order to read the full content.

Steps to reproduce:

Simply, use the code from the example and add enough content to the dialog window to overload the screen

Related code:

insert short code snippets here

Other information:

npm, node, OS, Browser no necessary

Angular, Nebular Last version of Nebula 4.1.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
xouqoacommented, Sep 8, 2019

I am not sure what the code for your ScrollDialogComponent looks like in your original example.

But let’s assume you have a <nb-card></nb-card> inside there which wraps your content. Try putting the max-height on there.

0reactions
janice1015commented, Jun 29, 2022

How did you solve the problem final? I have the same problem as you,help~~

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dialog Angular UI Component - Nebular - GitHub Pages
The NbDialogService helps to open dialogs. ... A new dialog is opened by calling the open method with a component to be loaded...
Read more >
How could I change NbDialogService size? - Stack Overflow
Hi, I found this solution, but actually is for modalService, not for dialogService. I've tried your solution, and i received: ERROR in src/app/ ......
Read more >
Show scroll bars in Word or Excel - Microsoft Support
Select Horizontal scroll bar and Vertical scroll bar and then close the dialog. Restore the application window. If the scroll bars are still...
Read more >
Dialog scrollbar only appears when resizing dialog window
I am trying to create a pop-up with a listview, but when the listview exceeds the size of the dialog window, there will...
Read more >
overscroll-behavior - CSS: Cascading Style Sheets | MDN
You may also have noticed that when you have a dialog box with scrolling ... No scroll chaining occurs to neighboring scrolling areas, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found