-
Notifications
You must be signed in to change notification settings - Fork 6.8k
md-select inside md-dialog does out of dialog DOM so, bottom value in inline style is calculated wrong that disapper the select #7137
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
Comments
above style is calculated automatically inside cdk-overlay-container |
Have you tried beta.10? It should have been fixed in #4696 (may/2017). Could you provide a plunk? Also:
where is this search web page? Provide a link. |
i have tried beta.10, it is still happening when main page have search results. It is working fine, when main page doesnot have any search results. |
I couldn't reproduce it purely by putting a datepicker inside a dialog. Can you post a Plunkr showing the issue? |
@ervbsankar, are you doing something that potentially change css, like dynamically changing the app's theme? |
It seems to be something in your project. It is not related to datepicker inside dialogs nor with lack of screen space (see the picture bellow, that, even without space, the calendar popup is visible). Somewhere you're messing with datepicker css (are you using other CSS libraries? Bootstrap, Materialize etc) Here is a plunk (try to reproduce the problem you're facing): https://plnkr.co/edit/4mtNqOcxCynrw4UmrnrG?p=preview |
It is not with CSS, after figuring out, I found that Please let me know how to set the height of Dialog. |
this.modalRef = this.modalService.open(CustomDialogComponent,{width: '400px',height:'400px'}); |
setting value to height is making date picker or Options go disappear. cdk-overlay value is calculated with below value, this makes dialog to show full height. Below css value is not set in my CSS it is calculated by angular materials. |
it is happening with ngx-bootstrap modal too. date and select of angular materials are moving towards top of the screen and |
Unfortunately without providing a reproduction case it is not possible for us to troubleshoot the bug and fix it. If you can provide a reproduction case we can go from there: Here is a plunkr that has the situation you described. If you can reproduce the issue from here we can take a look. |
We haven't been able to reproduce this issue. Feel free to open a new issue if you are able to provide a reproduction via StackBlitz. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Uh oh!
There was an error while loading. Please reload this page.
Bug, feature request, or proposal:
md-select or md-datepicker does out of DOM so, it is not positioned correctly inside md-dialog
What is the expected behavior?
md-select or md-datepicker should allign with md-dialog DOM
What is the current behavior?
md-select or md-datepicker does out of DOM so, it is not positioned correctly inside md-dialog
What are the steps to reproduce?
this is user search web page
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/animations": "^4.3.3",
"@angular/cdk": "^2.0.0-beta.8",
"@angular/material": "^2.0.0-beta.8",
grome broswer
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: