File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 1- import { MatProgressSpinner , MatProgressSpinnerModule } from './index' ;
21import { TestBed , async } from '@angular/core/testing' ;
3-
4- import { By } from '@angular/platform-browser' ;
52import { Component } from '@angular/core' ;
3+ import { By } from '@angular/platform-browser' ;
4+ import { MatProgressSpinner , MatProgressSpinnerModule } from './index' ;
65
76describe ( 'MatProgressSpinner' , ( ) => {
87
Original file line number Diff line number Diff line change 66 * found in the LICENSE file at https://angular.io/license
77 */
88
9- import { CanColor , mixinColor } from '@angular/material/core' ;
109import {
11- ChangeDetectionStrategy ,
1210 Component ,
13- ElementRef ,
14- Inject ,
11+ ChangeDetectionStrategy ,
1512 Input ,
16- OnChanges ,
17- Optional ,
13+ ElementRef ,
1814 SimpleChanges ,
15+ OnChanges ,
1916 ViewEncapsulation ,
17+ Optional ,
18+ Inject ,
2019} from '@angular/core' ;
21-
22- import { DOCUMENT } from '@angular/common' ;
20+ import { CanColor , mixinColor } from '@angular/material/core' ;
2321import { Platform } from '@angular/cdk/platform' ;
22+ import { DOCUMENT } from '@angular/common' ;
2423import { coerceNumberProperty } from '@angular/cdk/coercion' ;
2524
2625/** Possible mode for a progress spinner. */
@@ -123,7 +122,7 @@ export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements
123122 if ( ! this . _fallbackAnimation && ! MatProgressSpinner . diameters . has ( this . _diameter ) ) {
124123 this . _attachStyleNode ( ) ;
125124 }
126- this . _updateSpinnerDimension ( ) ;
125+ this . _updateElementSize ( ) ;
127126 }
128127 private _diameter = BASE_SIZE ;
129128
@@ -167,7 +166,7 @@ export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements
167166
168167 ngOnChanges ( changes : SimpleChanges ) {
169168 if ( changes . strokeWidth || changes . diameter ) {
170- this . _updateSpinnerDimension ( ) ;
169+ this . _updateElementSize ( ) ;
171170 }
172171 }
173172
You can’t perform that action at this time.
0 commit comments