Weird content shifting behind Dialog when using DialogService with NbSelectComponents
See original GitHub issueIssue type
I’m submitting a … (check one with “x”)
- bug report
- feature request
- question about the decisions made in the repository
Issue description
Current behavior:
When I open a dialog with the NbDialogService
, and it consists of NbSelect
components it will make some weird content shift. This only happens if you have long content when you need scrolling.
Expected behavior: I would expect when I have a long scrolling content and I open a dialog and it consists of nbselect components it shouldn’t mess up the content behind the overlay.
Steps to reproduce:
- Have long scrolling content. I have three
ng2-smart-table
s. - Make a dialog window with a few field. make the last or second last one the nbselect component. click two times. on the nbselect component to make the content behind dialog shift.
https://gyazo.com/a5acf099212df95be532fa9db16d5a65
https://gyazo.com/5e5c7a6b3ad0bc659407298a3ede0206
Related code:
<div class="row">
<div class="col-md-12">
<nb-card>
<nb-card-header>
<!-- Header -->
</nb-card-header>
<nb-card-body>
<div class="container col-md-12" *ngIf="!isDeleted">
<!-- other content -->
</div>
<ng2-smart-table *ngIf="!isDeleted"
#smartTableComponent
[settings]="settings" [source]="source"
(createConfirm)="onCreateConfirm($event)"
(editConfirm)="onEditConfirm($event)"
(deleteConfirm)="onDeleteConfirm($event)"
(custom)="onChangelogConfirm($event)"
(userSelectedRows)="onMultipleRowSelected($event)"></ng2-smart-table>
<!-- <button type="submit" nbButton (click)="open()">{{ AddButtonTitle }}</button>-->
</nb-card-body>
</nb-card>
</div>
</div>
Other information:
npm, node, OS, Browser
<!--
Node, npm: `12.16.1` and npm `6.13.4`
OS: Windows 10.
Browser: Chrome
-->
Angular 9, Nebular 5
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Angular mat dialog weird behavior: shrinking the main app ...
When I click the btn to open the dialog, it shifts the content of the <app-root> up, reducing its height by creating a...
Read more >Angular Service - Dialog - Kendo UI for Angular - Telerik
Use the Kendo UI Dialog service to create Dialog instances dynamically in Angular ... You can specify the contents of the Dialog content...
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 fixed this issue by removing “windowMode” in one-columns-layout, two-columns-layout, three-columns-layout component file.
Please try and let me know.
I still have this problem with nebular 8. Removing “windowMode” from my
<nb-layout>
seems to works well, just hoping it doesnt create other bugs.