-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening NbSelect distorts page layout #1443
Comments
The bug made the NbSelect component unusable. The closed referenced issue does not solve the bug. Looking forward for workaround |
Yep, this issue is still happening, in the official demo and in my app. NbSelect is breaking the layout. When a nb select is opened with the window scrolled down, the html element style attribute is changed applying negative top css property to it. This pushes the header too, and in my app, the nb-menu element. |
For now, I fixed it with:
|
negative |
Same issue here... @maihannijat 's solution doesn't seem to work for me... Where do you add the |
Ran into the issue today, fixed with @maihannijat first fix, but using
Although that may break other scrollings, not a perfect fix. |
@Meowzz95 I add the following in the
|
Any other solutions for this one that DOESN'T break scrolling?? |
For now, I don't use selects from nebular, just the common bootstrap .custom-select. For my application, it doesn't matter so much, but it would be nice for it to work properply. But, it seems like Nebular had an update, as the look of the selects have changed, maybe this issue was fixed?? |
The issue with header should be fixed by #1604. Also, a similar issue was fixed in the sidebar by #1607. We're planning to release minor updates with this fixes tomorrow (for both latest Before the release, you could apply change manually to verify fix does work. To fix header:
To fix sidebar:
Please, let us know here if fixes don't work for you. |
Closing as fixed in Nebular |
@yggg this is when nb-select is in a dialog still occurs on "@nebular/theme": "4.6.0" |
happens in 5.x as well |
Still happening but on production build only. This is very weird |
still happening in 6.0 as well, not fixed yet |
I have placed an nb-select on my footer. The bug is still happening in 6.2.1. Need help! video.mp4 |
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
If you have nb-layout-header on a page and nb-select inside nb-layout-column and if page's height is bigger than your screen and you open the nb-select after scrolling, the nb-layout-header would disappear.
(NOTE:) - the parent component nb-layout has no input properties.
Expected behavior:
nb-layout-header shouldn't move or disappear after scrolling the page and opening the nb-select
Steps to reproduce:
create nb-layout then inside it one nb-layout-header and one nb-layout-column. Then put a div Inside nb-layout-column with a height bigger than the screen, so you can to scroll it then put a nb-select inside this div in a position that you have to scroll in order to get to it, then open then nb-select to see the issue.
Related code:
Please refer to this closed issue - #1158
Angular, Nebular
The text was updated successfully, but these errors were encountered: