Skip to content

Commit

Permalink
Fix screen refresh issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
kshetline committed Dec 21, 2021
1 parent 1594b06 commit ad68d2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, HostListener, OnDestroy, OnInit } from '@angular/core';
import { AfterViewInit, Component, HostListener, OnDestroy } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import { Router } from '@angular/router';
import { AstroEvent, EventFinder, FIRST_QUARTER, FULL_MOON, LAST_QUARTER, NEW_MOON } from '@tubular/astronomy';
Expand Down Expand Up @@ -27,7 +27,7 @@ const MAX_CLOCK_EFFECTIVE_WIDTH = 600;
styleUrls: ['./app.component.scss'],
providers: [AppService, MessageService]
})
export class AppComponent implements OnInit, OnDestroy {
export class AppComponent implements AfterViewInit, OnDestroy {
SVC_MIN_YEAR = SVC_MIN_YEAR.toString();
SVC_MAX_YEAR = SVC_MAX_YEAR.toString();

Expand Down Expand Up @@ -95,7 +95,7 @@ export class AppComponent implements OnInit, OnDestroy {
app.getCurrentTabUpdates(tabIndex => this.selectedTab = tabIndex);
}

ngOnInit(): void {
ngAfterViewInit(): void {
setTimeout(() => {
this.doResize();

Expand Down

0 comments on commit ad68d2b

Please sign in to comment.