Skip to content

Commit a1eb925

Browse files
committed
Cleaned up leftover code from old view content resizing method. Fixed bug where Table view could be left blank until options changed.
1 parent 8c88887 commit a1eb925

19 files changed

Lines changed: 14 additions & 24 deletions

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svc-ng",
3-
"version": "1.4.11",
3+
"version": "1.4.12",
44
"license": "MIT AND GPL-3.0-or-later",
55
"author": "Kerry Shetline <kerry@shetline.com>",
66
"scripts": {

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="about-dialog">
33
<img src="/assets/resources/svc_lunar_eclipse.png" alt="lunar eclipse" width="64" height="64">
44
<h2>Sky View Café NP</h2>
5-
Version 1.4.11<br><br>
5+
Version 1.4.12<br><br>
66
Copyright © 2016-2018 Kerry Shetline.
77
</div>
88
</p-dialog>

src/app/svc/generic-view.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export abstract class GenericView implements AfterViewInit {
6363

6464
protected wrapper: HTMLDivElement;
6565
protected canvas: HTMLCanvasElement;
66-
protected marquee: HTMLDivElement;
6766
protected lastWidth = -1;
6867
protected lastHeight = -1;
6968
protected width = -1;

src/app/svc/svc-ecliptic-view/svc-ecliptic-view.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
></canvas>
99
</div>
1010
</div>
11-
<ks-marquee #marquee class="marquee" [text]="marqueeText"></ks-marquee>
11+
<ks-marquee class="marquee" [text]="marqueeText"></ks-marquee>

src/app/svc/svc-ecliptic-view/svc-ecliptic-view.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export class SvcEclipticViewComponent extends GenericSkyView implements AfterVie
8383

8484
@ViewChild('canvasWrapper') private wrapperRef: ElementRef;
8585
@ViewChild('skyCanvas') private canvasRef: ElementRef;
86-
@ViewChild('marquee', {read: ElementRef}) private marqueeRef: ElementRef;
8786

8887
constructor(appService: AppService) {
8988
super(appService, CurrentTab.ECLIPTIC);
@@ -142,7 +141,6 @@ export class SvcEclipticViewComponent extends GenericSkyView implements AfterVie
142141
ngAfterViewInit(): void {
143142
this.wrapper = this.wrapperRef.nativeElement;
144143
this.canvas = this.canvasRef.nativeElement;
145-
this.marquee = this.marqueeRef.nativeElement;
146144

147145
setTimeout(() => this.appService.requestViewSettings(VIEW_ECLIPTIC));
148146

src/app/svc/svc-insolation-view/svc-insolation-view.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
></canvas>
77
</div>
88
</div>
9-
<div #marquee class="marquee">&nbsp;
9+
<div class="marquee">&nbsp;
1010
<span class="marquee-sampler" [ngStyle]="{'background-color': skyColor}">&nbsp;</span><span class="marquee-sampler" [ngStyle]="{'background-color': moonColor}">&nbsp;</span>
11-
&nbsp;{{marqueeText}}&nbsp;</div>
11+
&nbsp;{{marqueeText}}&nbsp;</div>

src/app/svc/svc-insolation-view/svc-insolation-view.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export class SvcInsolationViewComponent extends GenericView implements AfterView
8080

8181
@ViewChild('canvasWrapper') private wrapperRef: ElementRef;
8282
@ViewChild('insolationCanvas') private canvasRef: ElementRef;
83-
@ViewChild('marquee') private marqueeRef: ElementRef;
8483

8584
skyColor = 'black';
8685
moonColor = 'black';
@@ -125,7 +124,6 @@ export class SvcInsolationViewComponent extends GenericView implements AfterView
125124
ngAfterViewInit(): void {
126125
this.wrapper = this.wrapperRef.nativeElement;
127126
this.canvas = this.canvasRef.nativeElement;
128-
this.marquee = this.marqueeRef.nativeElement;
129127

130128
setTimeout(() => this.appService.requestViewSettings(VIEW_INSOLATION));
131129

src/app/svc/svc-map-view/svc-map-view.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
></canvas>
1010
</div>
1111
</div>
12-
<ks-marquee #marquee class="marquee" [text]="'\u00A0' + marqueeText"></ks-marquee>
12+
<ks-marquee class="marquee" [text]="'\u00A0' + marqueeText"></ks-marquee>

src/app/svc/svc-map-view/svc-map-view.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export class SvcMapViewComponent extends GenericView implements AfterViewInit {
9797

9898
@ViewChild('canvasWrapper') private wrapperRef: ElementRef;
9999
@ViewChild('mapCanvas') private canvasRef: ElementRef;
100-
@ViewChild('marquee', {read: ElementRef}) private marqueeRef: ElementRef;
101100

102101
public showLocationDialog = false;
103102
public latitude: number;
@@ -154,7 +153,6 @@ export class SvcMapViewComponent extends GenericView implements AfterViewInit {
154153
ngAfterViewInit(): void {
155154
this.wrapper = this.wrapperRef.nativeElement;
156155
this.canvas = this.canvasRef.nativeElement;
157-
this.marquee = this.marqueeRef.nativeElement;
158156

159157
setTimeout(() => this.appService.requestViewSettings(VIEW_MAP));
160158

0 commit comments

Comments
 (0)