Skip to content

Commit 79fb97c

Browse files
committed
remove window size queries
1 parent 8c095d3 commit 79fb97c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/tabs/tab-headers.component.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,8 @@ export class TabHeaders implements AfterViewInit, AfterContentInit {
158158
}
159159

160160
this.tabs.forEach(tab => tab.cacheActive = this.cacheActive);
161-
this.tabs.changes.subscribe(changes => {
161+
this.tabs.changes.subscribe(() => {
162162
this.setFirstTab();
163-
// if the tabs have updated, there's a good chance the overflow will need to as well
164-
setTimeout(() => {});
165163
// also update the tab headers list
166164
this.allTabHeaders = this.headerContainer.nativeElement.querySelectorAll("li a");
167165
});
@@ -173,10 +171,6 @@ export class TabHeaders implements AfterViewInit, AfterContentInit {
173171
* @memberof TabHeaders
174172
*/
175173
ngAfterViewInit() {
176-
// check for window resize
177-
fromEvent(window, "resize")
178-
.pipe(throttleTime(100))
179-
.subscribe(() => {});
180174
this.allTabHeaders = this.headerContainer.nativeElement.querySelectorAll("li a");
181175
}
182176

0 commit comments

Comments
 (0)