-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-dialog backdrop displays incorrectly if page is scrolled #1967
Comments
maybe this could help you.... |
The same is true for the bottom sheet. I have a PR for the md-backdrop in #2023. |
I think this is also connected to #1830 |
Hey guys! This ticket is really important. Just to complement: position fixed to backdrop won't solve the problem completely. |
+1 |
Quick fiddle to demonstrate this is still a very present bug: http://output.jsbin.com/yotiloniri Just make sure to shrink the screen vertically smaller than the content (the kitten picture). |
+1 |
improve backdrop animations and css to account for scroll and parenting: backdrop - css uses transition and ng-enter/ng-leav - css transitions opacity instead of background-color - css no longer uses key frames - postLink uses $animate.pin if available - postLink logs a warning if the backdrop parent has a style 'position:static' util - disableElementScroll uses specified element or body; used by dialog to disable dialog parent scrolling when parent is explicitly specified dialog - css for 'md-dialog-container' is now 'position:absolute'; 'fixed' is deprecated - hide backdrop now runs in parallel with hide dialog - basic demo #1 now uses element '#popupContainer' as parent; instead of document.body - basic demo #1 has #popupContainer 'position:relative' styling Fixes #3826, #3828, #1967, #1106
improve backdrop animations and css to account for scroll and parenting: - backdrop - css uses transition and ng-enter/ng-leav - css transitions opacity instead of background-color - css no longer uses key frames - postLink uses $animate.pin if available - postLink logs a warning if the backdrop parent has a style 'position:static' - util - disableElementScroll uses specified element or body; used by dialog to disable dialog parent scrolling when parent is explicitly specified - refactor(util): centralize use of backdrop $compile - dialog - css for 'md-dialog-container' is now 'position:absolute'; 'fixed' is deprecated - hide backdrop now runs in parallel with hide dialog - basic demo #1 now uses element '#popupContainer' as parent; instead of document.body - basic demo #1 has #popupContainer 'position:relative' styling Fixes #3826, #3828, #1967, #1106
SolutionSearch object causing the problem. For example a <div>
<md-sidenav>
<!-- this md-sidenav tag is causing a warning -->
</md-sidenav>
</div> Fixing the problem... <div style="position:fixed;">
<md-sidenav>
<!-- No more warning! :) -->
</md-sidenav>
</div> |
the md-backdrop {
top: 0;
} might help you, if this is the case. |
I managed to fix it with setting background from hex to rgba value with rgba(243, 246, 251, .99) |
Had the same problem, the body was getting custom styles added, a hacky fix:
|
To solve the incorrect position after the scrolling in iPad Safari, please try: |
Hi guys, Only came across this now. But this is how you fix this error on mobi or web:
Hope this helps :D |
See http://codepen.io/anon/pen/ZYVpWo . Scroll down and click the button; the dialog backdrop will not cover the entire frame, and sometimes showing the dialog causes the page to unexpectedly jump.
The text was updated successfully, but these errors were encountered: