File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2525 z-index : $md-z-index-overlay-container ;
2626 }
2727
28- // Wrapper element for the panes that use the GlobalPositionStrategy.
28+ // We use an extra wrapper element in order to use make the overlay itself a flex item.
29+ // This makes centering the overlay easy without running into the subpixel rendering
30+ // problems tied to using `transform` and without interfering with the other position
31+ // strategies.
2932 .md-global-overlay-wrapper {
3033 display : flex ;
3134 position : absolute ;
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ export class GlobalPositionStrategy implements PositionStrategy {
1515 private _rightOffset : string = '' ;
1616 private _alignItems : string = '' ;
1717 private _justifyContent : string = '' ;
18+
19+ /* A lazily-created wrapper for the overlay element that is used as a flex container. */
1820 private _wrapper : HTMLElement ;
1921
2022 /** Sets the top position of the overlay. Clears any previously set vertical position. */
You can’t perform that action at this time.
0 commit comments