fixes for non-dual-node rbf feature

This commit is contained in:
Mononaut
2023-03-04 03:16:59 -06:00
parent 40b7cc3010
commit 1a96608a60
7 changed files with 31 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
<div
#tooltip
*ngIf="rbfInfo"
*ngIf="rbfInfo && tooltipPosition !== null"
class="rbf-tooltip"
[style.left]="tooltipPosition.x + 'px'"
[style.top]="tooltipPosition.y + 'px'"

View File

@@ -10,7 +10,7 @@ export class RbfTimelineTooltipComponent implements OnChanges {
@Input() rbfInfo: RbfInfo | void;
@Input() cursorPosition: { x: number, y: number };
tooltipPosition = { x: 0, y: 0 };
tooltipPosition = null;
@ViewChild('tooltip') tooltipElement: ElementRef<HTMLCanvasElement>;

View File

@@ -23,7 +23,7 @@ export class RbfTimelineComponent implements OnInit, OnChanges {
rows: TimelineCell[][] = [];
hoverInfo: RbfInfo | void = null;
tooltipPosition = { x: 0, y: 0 };
tooltipPosition = null;
dir: 'rtl' | 'ltr' = 'ltr';