diff options
| author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-01 17:23:30 -0400 |
|---|---|---|
| committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-01 17:23:30 -0400 |
| commit | bcd8589f9319221dceb23f5c1aad35fd6373194b (patch) | |
| tree | a0810aa672a7f185f6c9ee681f0b342632f58d50 /src/client/views/presentationview/PresentationElement.tsx | |
| parent | 2ca24a234817495c3330b93b504b13c0c6db91f3 (diff) | |
Still trying to figure out DragManager
Diffstat (limited to 'src/client/views/presentationview/PresentationElement.tsx')
| -rw-r--r-- | src/client/views/presentationview/PresentationElement.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/presentationview/PresentationElement.tsx b/src/client/views/presentationview/PresentationElement.tsx index 4afc0210f..d8953a4ae 100644 --- a/src/client/views/presentationview/PresentationElement.tsx +++ b/src/client/views/presentationview/PresentationElement.tsx @@ -31,8 +31,7 @@ interface PresentationElementProps { presStatus: boolean; presButtonBackUp: Doc; presGroupBackUp: Doc; - - + setHeader: (header: React.RefObject<HTMLDivElement>) => void; } //enum for the all kinds of buttons a doc in presentation can have @@ -54,6 +53,8 @@ export enum buttonIndex { export default class PresentationElement extends React.Component<PresentationElementProps> { @observable private selectedButtons: boolean[]; + private headerTest?: React.RefObject<HTMLDivElement> = React.createRef(); + constructor(props: PresentationElementProps) { @@ -374,6 +375,7 @@ export default class PresentationElement extends React.Component<PresentationEle let onLeave = (e: React.PointerEvent) => { p.document.libraryBrush = false; }; return ( <div className={className} key={p.document[Id] + p.index} + ref={(e) => this.props.setHeader(e)} onPointerEnter={onEnter} onPointerLeave={onLeave} style={{ outlineColor: "maroon", |
