diff options
author | madelinegr <mgriswold99@gmail.com> | 2019-02-26 17:43:12 -0500 |
---|---|---|
committer | madelinegr <mgriswold99@gmail.com> | 2019-02-26 17:43:12 -0500 |
commit | 4fbb88e1019f1813a3bf0ed9d92e5c57eb435cdc (patch) | |
tree | 5eebcee7bd0c34ea9c6c86ecf81e109a5773fc58 /src/client/views/PresentationView.tsx | |
parent | 36e5de8777ef8bddb66b758e08d1fc0913c59e00 (diff) |
pres view active and updating
Diffstat (limited to 'src/client/views/PresentationView.tsx')
-rw-r--r-- | src/client/views/PresentationView.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/views/PresentationView.tsx b/src/client/views/PresentationView.tsx index d9d9715fc..081f8533c 100644 --- a/src/client/views/PresentationView.tsx +++ b/src/client/views/PresentationView.tsx @@ -58,6 +58,15 @@ export class PresentationView extends React.Component<PresViewProps> { @observable collapsed: boolean = false; + private ref: React.RefObject<HTMLDivElement>; + + //initilize class variables + constructor(props: PresViewProps) { + super(props); + this.ref = React.createRef() + PresentationView.Instance = this; + } + /** * Adds a document to the presentation view **/ @@ -105,7 +114,7 @@ export class PresentationView extends React.Component<PresViewProps> { if (title && title !== "<Waiting>") { titleStr = title.Data; } - let width = this.collapsed ? 0 : 100; + let width = this.collapsed ? 100 : 300; return ( <div background-color="lightblue" max-width={width}> <h3>{titleStr}</h3> |