aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/Main.tsx3
-rw-r--r--src/client/views/nodes/Timeline.tsx7
2 files changed, 7 insertions, 3 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index 35d5e8a35..0181e98e9 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -385,8 +385,9 @@ export class Main extends React.Component {
let cat = Gateway.Instance.ClearCatalog();
cat.then(async () => {
this.AddToNorthstarCatalog(await Gateway.Instance.GetCatalog());
- if (!CurrentUserUtils.GetNorthstarSchema("Book1"))
+ if (!CurrentUserUtils.GetNorthstarSchema("Book1")) {
this.AddToNorthstarCatalog(await Gateway.Instance.GetSchema("http://www.cs.brown.edu/~bcz/Book1.csv"));
+ }
});
}
diff --git a/src/client/views/nodes/Timeline.tsx b/src/client/views/nodes/Timeline.tsx
index c6aa0b146..634a16573 100644
--- a/src/client/views/nodes/Timeline.tsx
+++ b/src/client/views/nodes/Timeline.tsx
@@ -22,11 +22,10 @@ export class Timeline extends React.Component {
@action
onStop = (e: React.MouseEvent) => {
this._isRecording = false;
- if (this._inner.current) {
+ if (this._inner.current) { //if you comment this section out it works as before...
this._newBar = document.createElement("div");
this._newBar.style.height = "100%";
this._newBar.style.width = "5px";
- this._newBar.style.left = this._currentBar.style.left;
this._newBar.style.backgroundColor = "yellow";
this._newBar.style.transform = this._currentBar.style.transform;
this._inner.current.appendChild(this._newBar);
@@ -45,6 +44,9 @@ export class Timeline extends React.Component {
}
}
+ createMark = (width: number) => {
+
+ }
private _keyFrames: KeyFrame[] = [];
@@ -60,6 +62,7 @@ export class Timeline extends React.Component {
}
}
+
componentDidMount() {
this.createBar(5);
// let doc: Document;