@@ -6,10 +6,8 @@ import {
6
6
Inject ,
7
7
Input ,
8
8
OnDestroy ,
9
- OnInit ,
10
9
Optional
11
10
} from '@angular/core' ;
12
- import { first } from 'rxjs/operators' ;
13
11
import { Subscription } from 'rxjs' ;
14
12
import { IDisplayDensityOptions , DisplayDensityToken , DisplayDensityBase } from '../../core/displayDensity' ;
15
13
import { IgxIconService } from '../../icon/public_api' ;
@@ -30,7 +28,7 @@ import { GridType } from '../common/grid.interface';
30
28
selector : 'igx-grid-toolbar' ,
31
29
templateUrl : './grid-toolbar.component.html'
32
30
} )
33
- export class IgxGridToolbarComponent extends DisplayDensityBase implements OnInit , OnDestroy {
31
+ export class IgxGridToolbarComponent extends DisplayDensityBase implements OnDestroy {
34
32
35
33
/**
36
34
* When enabled, shows the indeterminate progress bar.
@@ -106,10 +104,6 @@ export class IgxGridToolbarComponent extends DisplayDensityBase implements OnIni
106
104
return this . displayDensity === 'compact' ;
107
105
}
108
106
109
- /** @hidden @internal */
110
- @HostBinding ( 'style.max-width.px' )
111
- @HostBinding ( 'style.flex-basis.px' )
112
- public width = null ;
113
107
114
108
protected _grid : IgxGridBaseDirective ;
115
109
protected sub : Subscription ;
@@ -125,12 +119,6 @@ export class IgxGridToolbarComponent extends DisplayDensityBase implements OnIni
125
119
this . iconService . addSvgIconFromText ( unpinLeft . name , unpinLeft . value , 'imx-icons' ) ;
126
120
}
127
121
128
- /** @hidden @internal */
129
- public ngOnInit ( ) {
130
- this . grid . rendered$ . pipe ( first ( ) ) . subscribe ( ( ) => this . width = this . grid . outerWidth ) ;
131
- this . sub = this . grid . resizeNotify . subscribe ( ( ) => this . width = this . grid . outerWidth ) ;
132
- }
133
-
134
122
/** @hidden @internal */
135
123
public ngOnDestroy ( ) {
136
124
this . sub ?. unsubscribe ( ) ;
0 commit comments