From ab93f3fc8f608b7bbf63514c3c63f4584cab7504 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Sun, 23 Oct 2016 14:40:08 +0200 Subject: [PATCH] fix(spinner): working in firefox and edge fixes #8714 --- src/components/spinner/spinner.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/spinner/spinner.ts b/src/components/spinner/spinner.ts index 1a30827217e..9a52900c3f0 100644 --- a/src/components/spinner/spinner.ts +++ b/src/components/spinner/spinner.ts @@ -261,8 +261,8 @@ const SPINNERS: any = { return { r: 5, style: { - top: 9 * Math.sin(2 * Math.PI * index / total), - left: 9 * Math.cos(2 * Math.PI * index / total), + top: (9 * Math.sin(2 * Math.PI * index / total)) + 'px', + left: (9 * Math.cos(2 * Math.PI * index / total)) + 'px', [CSS.animationDelay]: -(dur - ((dur / total) * index)) + 'ms' } }; @@ -276,8 +276,8 @@ const SPINNERS: any = { return { r: 5, style: { - top: 9 * Math.sin(2 * Math.PI * index / total), - left: 9 * Math.cos(2 * Math.PI * index / total), + top: (9 * Math.sin(2 * Math.PI * index / total)) + 'px', + left: (9 * Math.cos(2 * Math.PI * index / total)) + 'px', [CSS.animationDelay]: -(dur - ((dur / total) * index)) + 'ms' } }; @@ -302,7 +302,7 @@ const SPINNERS: any = { return { r: 6, style: { - left: (9 - (9 * index)), + left: (9 - (9 * index)) + 'px', [CSS.animationDelay]: -(110 * index) + 'ms' } };