MdDialog after opening add style and css class to html element, which breaks ui
See original GitHub issueBug, feature request, or proposal:
bug i guess
What is the expected behavior?
do not add any styles and classes to html
element
What is the current behavior?
MdDialog after open add to html
element class="cdk-global-scrollblock" style="left: 0px; top: 0px;"
and if to scroll down and open a dialog, we will get <html lang="en" class="cdk-global-scrollblock" style="left: 0px; top: -1161px;">
and after this style, all my background moves(even if it position: fixed)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular - 4.4.4 material/cdk - 2.0.0-beta.11 typescript - 2.4.2 All browsers
p.s. in beta.8 version i haven’t seen this behavior
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
md dialog not working properly? - Stack Overflow
1 Answer 1 ; When I click edit, should I put the task details' $scope in the showDialog or the controller? – mshwf....
Read more >Services > $mdDialog - AngularJS Material
When using a string as value, $mdDialog will automatically query the DOM for the specified CSS selector. <div style="visibility: hidden"> <div class ......
Read more >$mdDialog scrollbar blinking - Plunker
We need to add `element.focus()`, because it's testable unlike ... or not to always watch themes for changes and re-apply * classes when...
Read more >Dialog | Angular Material
The MatDialog service can be used to open modal dialogs with Material Design styling and animations. Dialog Overview.
Read more >Angular Material Dialog: A Complete Example
Step 2 of 5 - Creating and opening an Angular Material Dialog ... panelClass : adds a list of custom CSS classes to...
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
thank you, and sorry for duplicate, i didn’t found this issue, it works for me, just add
top/bottom
css forfixed
elements, and it helpsThis issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.