aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PresBox.tsx
diff options
context:
space:
mode:
authorHJF Bulterman <henri_bulterman@brown.edu>2019-08-09 15:37:49 -0400
committerHJF Bulterman <henri_bulterman@brown.edu>2019-08-09 15:37:49 -0400
commit0af800d2edf120ab2a20842ed67ea7d7616996b9 (patch)
treeee98117d5d1cf1d4a6d7ec9325e5a2dad8a482c0 /src/client/views/nodes/PresBox.tsx
parentae62e415d18b83fb1ef6b4a8f438b1d7e8d3157a (diff)
working for about 85%
Diffstat (limited to 'src/client/views/nodes/PresBox.tsx')
-rw-r--r--src/client/views/nodes/PresBox.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx
index 2feb32693..8316c4469 100644
--- a/src/client/views/nodes/PresBox.tsx
+++ b/src/client/views/nodes/PresBox.tsx
@@ -32,7 +32,7 @@ export interface PresViewProps {
Documents: List<Doc>;
}
-const expandedWidth = 400;
+const expandedWidth = 450;
@observer
export class PresBox extends React.Component<FieldViewProps> { //FieldViewProps?
@@ -825,10 +825,11 @@ export class PresBox extends React.Component<FieldViewProps> { //FieldViewProps?
render() {
- let width = NumCast(this.curPresentation.width);
+ let width = "100%"; //NumCast(this.curPresentation.width)
+ console.log("The width is: " + width);
return (
- <div className="presentationView-cont" onPointerEnter={action(() => !this.persistOpacity && (this.opacity = 1))} onPointerLeave={action(() => !this.persistOpacity && (this.opacity = 0.4))} style={{ width: width, overflow: "hidden", opacity: this.opacity, transition: "0.7s opacity ease" }}>
+ <div className="presentationView-cont" onPointerEnter={action(() => !this.persistOpacity && (this.opacity = 1))} onPointerLeave={action(() => !this.persistOpacity && (this.opacity = 0.4))} style={{ width: width, overflow: "hidden", opacity: this.opacity, transition: "0.7s opacity ease", pointerEvents: "all" }}>
<div className="presentationView-heading">
{this.renderSelectOrPresSelection()}
<button title="Close Presentation" className='presentation-icon' onClick={this.closePresentation}><FontAwesomeIcon icon={"times"} /></button> {/**this.closePresentation CLICK does not work?! Also without the*/}