diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-29 12:22:35 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-29 12:22:35 -0400 |
| commit | a1a9803096adde0cd932e703080948ef1d1724f7 (patch) | |
| tree | 82cd4382cfb423a01cf61f04187e09451328ae00 /src/client/views/collections | |
| parent | 317dd86ab8bad7afc927a1d6dc7e5d458bac4340 (diff) | |
fixed doc decorations for dictation. gave dictation docs a title. minor cleanup.
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionStackedTimeline.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx index 73148560a..c0cebf021 100644 --- a/src/client/views/collections/CollectionStackedTimeline.tsx +++ b/src/client/views/collections/CollectionStackedTimeline.tsx @@ -8,7 +8,7 @@ import { List } from "../../../fields/List"; import { listSpec, makeInterface } from "../../../fields/Schema"; import { ComputedField, ScriptField } from "../../../fields/ScriptField"; import { Cast, NumCast } from "../../../fields/Types"; -import { emptyFunction, formatTime, OmitKeys, returnFalse, returnOne, setupMoveUpEvents, StopEvent } from "../../../Utils"; +import { emptyFunction, formatTime, OmitKeys, returnFalse, returnOne, setupMoveUpEvents, StopEvent, returnTrue } from "../../../Utils"; import { Docs } from "../../documents/Documents"; import { LinkManager } from "../../util/LinkManager"; import { Scripting } from "../../util/Scripting"; @@ -236,6 +236,7 @@ export class CollectionStackedTimeline extends CollectionSubView<PanZoomDocument dictationHeight = () => this.props.PanelHeight() / 3; timelineContentHeight = () => this.props.PanelHeight() * 2 / 3; + dictationScreenToLocalTransform = () => this.props.ScreenToLocalTransform().translate(0, -this.timelineContentHeight()); @computed get renderDictation() { const dictation = Cast(this.dataDoc[this.props.fieldKey.replace("annotations", "dictation")], Doc, null); return !dictation ? (null) : <div style={{ position: "absolute", height: this.dictationHeight(), top: this.timelineContentHeight(), background: "tan" }}> @@ -244,10 +245,10 @@ export class CollectionStackedTimeline extends CollectionSubView<PanZoomDocument PanelHeight={this.dictationHeight} isAnnotationOverlay={true} select={emptyFunction} - active={returnFalse} scaling={returnOne} xMargin={25} yMargin={10} + ScreenToLocalTransform={this.dictationScreenToLocalTransform} whenActiveChanged={emptyFunction} removeDocument={returnFalse} moveDocument={returnFalse} |
