aboutsummaryrefslogtreecommitdiff
path: root/src/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-01-18 21:01:16 -0500
committeryipstanley <stanley_yip@brown.edu>2019-01-18 21:01:16 -0500
commita0fadfc2017632dc17455ecf5fe7dd669834e887 (patch)
tree23a1be3d6cacc9fe0b1e16a29ece2f6d564d8ca1 /src/views/nodes/DocumentView.tsx
parent05138b7f0366e1854ebaabbea1dcc41fb7666b3d (diff)
document decorations added kinda
Diffstat (limited to 'src/views/nodes/DocumentView.tsx')
-rw-r--r--src/views/nodes/DocumentView.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/views/nodes/DocumentView.tsx b/src/views/nodes/DocumentView.tsx
index d6f4b296d..5b0951f45 100644
--- a/src/views/nodes/DocumentView.tsx
+++ b/src/views/nodes/DocumentView.tsx
@@ -74,8 +74,8 @@ export class DocumentView extends React.Component<IProps> {
}
@computed
- get selected() : string {
- return SelectionManager.IsSelected(this) ? "5px solid black" : "0px"
+ get selected() : boolean {
+ return SelectionManager.IsSelected(this)
}
private _isPointerDown = false;
@@ -116,7 +116,7 @@ export class DocumentView extends React.Component<IProps> {
let doc = this.props.dvm.Doc;
let bindings: any = {
doc: doc,
- isSelected: this.selected !== "0px"
+ isSelected: this.selected
};
for (const key of this.layoutKeys) {
bindings[key.Name + "Key"] = key;
@@ -132,8 +132,7 @@ export class DocumentView extends React.Component<IProps> {
<div className="node" ref={this._mainCont} style={{
transform: this.transform,
width: this.width,
- height: this.height,
- border: this.selected
+ height: this.height
}} onPointerDown={this.onPointerDown} onContextMenu={
(e) => {
e.preventDefault()