Bug
The width and height of a mat-progress-spinner are equal to its diameter
The width and height are 10 times its diameter
Providing a StackBlitz/Plunker (or similar) is the best way to get the team to see your issue.
Plunker starter (using on @master): https://goo.gl/uDmqyY
StackBlitz starter (using latest npm release): https://goo.gl/wwnhMV
<mat-progress-spinner mode="indeterminate" diameter="20"></mat-progress-spinner>
/
Material 5.0.0-rc0
Root cause:
(in material2/src/lib/progress-spinner/progress-spinner.ts)
The @Input diameter is not passed through coerceNumberProperty() and hence recognized as a string. Later in ngOnChanges() this string would plus a number 0, which results in a 10 times larger size.
Will be fixed by https://github.com/angular/material2/pull/7791. Until then you can work around it by setting the diameter via a data binding [diameter]="20".
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
Will be fixed by https://github.com/angular/material2/pull/7791. Until then you can work around it by setting the diameter via a data binding
[diameter]="20".