Skip to content

Commit

Permalink
WIP update from review
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickrodee committed Jan 10, 2020
1 parent f400795 commit e933b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mdc-dom/ponyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function estimateScrollWidth(element: Element): number {

const clone = htmlEl.cloneNode(true) as HTMLElement;
clone.style.setProperty('position', 'absolute');
clone.style.setProperty('transform', '-9999px, -9999px');
clone.style.setProperty('transform', 'translate(-9999px, -9999px)');
document.documentElement.appendChild(clone);
const scrollWidth = clone.scrollWidth;
document.documentElement.removeChild(clone);
Expand Down

0 comments on commit e933b88

Please sign in to comment.