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 41ad382 commit 42bc574Copy full SHA for 42bc574
src/lib/core/overlay/position/connected-position-strategy.ts
@@ -227,8 +227,9 @@ export class ConnectedPositionStrategy implements PositionStrategy {
227
* @param overlayPoint
228
*/
229
private _setElementPosition(element: HTMLElement, overlayPoint: Point) {
230
- let x = overlayPoint.x;
231
- let y = overlayPoint.y;
+ // Round the values to prevent blurry overlays due to subpixel rendering.
+ let x = Math.round(overlayPoint.x);
232
+ let y = Math.round(overlayPoint.y);
233
234
// TODO(jelbourn): we don't want to always overwrite the transform property here,
235
// because it will need to be used for animations.
0 commit comments