We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f0265c commit cf47916Copy full SHA for cf47916
src/lib/core/overlay/position/connected-position-strategy.ts
@@ -217,8 +217,9 @@ export class ConnectedPositionStrategy implements PositionStrategy {
217
* @param overlayPoint
218
*/
219
private _setElementPosition(element: HTMLElement, overlayPoint: Point) {
220
- let x = overlayPoint.x;
221
- let y = overlayPoint.y;
+ // Round the values to prevent blurry overlays due to subpixel rendering.
+ let x = Math.round(overlayPoint.x);
222
+ let y = Math.round(overlayPoint.y);
223
224
// TODO(jelbourn): we don't want to always overwrite the transform property here,
225
// because it will need to be used for animations.
0 commit comments