File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,9 @@ export class MatTabHeader extends _MatTabHeaderMixinBase
338
338
// seems to cause flickering and overflow in Internet Explorer. For example, the ink bar
339
339
// and ripples will exceed the boundaries of the visible tab bar.
340
340
// See: https://github.com/angular/material2/issues/10276
341
- this . _tabList . nativeElement . style . transform = `translateX(${ translateX } px)` ;
341
+ // We round the `transform` here, because transforms with sub-pixel precision cause some
342
+ // browsers to blur the content of the element.
343
+ this . _tabList . nativeElement . style . transform = `translateX(${ Math . round ( translateX ) } px)` ;
342
344
343
345
// Setting the `transform` on IE will change the scroll offset of the parent, causing the
344
346
// position to be thrown off in some cases. We have to reset it ourselves to ensure that
You can’t perform that action at this time.
0 commit comments