The dialog popup windows with NbDialogService does not have a scrollbar
See original GitHub issueIssue 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:
- Created 4 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.How did you solve the problem final? I have the same problem as you,help~~