aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaCells.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-06-22 17:14:33 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-06-22 17:14:33 -0400
commit97090506ca22ce2f96b0c0cb44bf30b3c17f7b90 (patch)
tree3d15c07002e3ac4e94bb26cd1c6bd4a21a383256 /src/client/views/collections/CollectionSchemaCells.tsx
parentcec8cc0d8444b0321ec95a49d91a77a926462900 (diff)
fixed display of document preview for schema view
Diffstat (limited to 'src/client/views/collections/CollectionSchemaCells.tsx')
-rw-r--r--src/client/views/collections/CollectionSchemaCells.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx
index b9be3b64f..7b76a5c84 100644
--- a/src/client/views/collections/CollectionSchemaCells.tsx
+++ b/src/client/views/collections/CollectionSchemaCells.tsx
@@ -405,7 +405,7 @@ export class CollectionSchemaDocCell extends CollectionSchemaCell {
} else {
if (bool) {
console.log("show doc");
- this.props.showDoc(this._doc, this.prop.DataDoc, e.screenX - 230, e.screenY - 570);
+ this.props.showDoc(this._doc, this.prop.DataDoc, e.clientX, e.clientY);
} else {
console.log("no doc");
this.props.showDoc(undefined);
@@ -445,11 +445,11 @@ export class CollectionSchemaDocCell extends CollectionSchemaCell {
return (
<div className="collectionSchemaView-cellWrapper" ref={this._focusRef} tabIndex={-1}
- // onPointerDown={(e) => { this.onDown(e); }}
+ onPointerDown={(e) => { this.onDown(e); }}
// onFocus={(e) => this.showPreview(true, e)}
- onMouseEnter={(e) => { this.showPreview(true, e); }}
+ onPointerEnter={(e) => { this.showPreview(true, e); }}
// onBlur={(e) => { console.log("Blur"); this.showPreview(false, e) }}
- onMouseLeave={(e) => { this.showPreview(false, e); }}
+ onPointerLeave={(e) => { this.showPreview(false, e); }}
>
<div className="collectionSchemaView-cellContents-document"