aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Server.ts3
-rw-r--r--src/client/views/collections/CollectionFreeFormView.tsx2
-rw-r--r--src/client/views/collections/CollectionVideoView.tsx2
-rw-r--r--src/client/views/collections/PreviewCursor.tsx1
4 files changed, 4 insertions, 4 deletions
diff --git a/src/client/Server.ts b/src/client/Server.ts
index 5e42c8285..3fb1ae878 100644
--- a/src/client/Server.ts
+++ b/src/client/Server.ts
@@ -56,6 +56,7 @@ export class Server {
let field = this.ClientFieldsCached.get(id);
if (!field) {
neededFieldIds.push(id);
+ this.ClientFieldsCached.set(id, FieldWaiting);
} else if (field === FieldWaiting) {
waitingFieldIds.push(id);
} else {
@@ -65,7 +66,7 @@ export class Server {
SocketStub.SEND_FIELDS_REQUEST(neededFieldIds, (fields) => {
for (let key in fields) {
let field = fields[key];
- if (!this.ClientFieldsCached.has(field.Id)) {
+ if (!(this.ClientFieldsCached.get(field.Id) instanceof Field)) {
this.ClientFieldsCached.set(field.Id, field)
}
}
diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx
index f0096109a..5af30d334 100644
--- a/src/client/views/collections/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/CollectionFreeFormView.tsx
@@ -343,7 +343,7 @@ export class CollectionFreeFormView extends CollectionViewBase {
onDrop={this.onDrop.bind(this)}
onDragOver={this.onDragOver}
onBlur={this.onBlur}
- style={{ borderWidth: `${COLLECTION_BORDER_WIDTH}px`, }}
+ style={{ borderWidth: `${COLLECTION_BORDER_WIDTH}px` }}// , zIndex: !this.props.isTopMost ? -1 : undefined }}
tabIndex={0}
ref={this.createDropTarget}>
<div className="collectionfreeformview"
diff --git a/src/client/views/collections/CollectionVideoView.tsx b/src/client/views/collections/CollectionVideoView.tsx
index b64ef3c07..8fc1a1b4d 100644
--- a/src/client/views/collections/CollectionVideoView.tsx
+++ b/src/client/views/collections/CollectionVideoView.tsx
@@ -112,7 +112,7 @@ export class CollectionVideoView extends React.Component<CollectionViewProps> {
render() {
return (<div className="collectionVideoView-cont" ref={this._mainCont} onContextMenu={this.specificContextMenu}>
{this.subView}
- {this.uIButtons}
+ {this.props.isSelected() ? this.uIButtons : (null)}
</div>)
}
} \ No newline at end of file
diff --git a/src/client/views/collections/PreviewCursor.tsx b/src/client/views/collections/PreviewCursor.tsx
index cbcfa568d..cbf36cf9e 100644
--- a/src/client/views/collections/PreviewCursor.tsx
+++ b/src/client/views/collections/PreviewCursor.tsx
@@ -59,7 +59,6 @@ export class PreviewCursor extends React.Component<PreviewCursorProps> {
let newBox = Documents.TextDocument({ width: 200, height: 100, x: x, y: y, title: "new" });
this.props.addLiveTextDocument(newBox);
e.stopPropagation();
- e.preventDefault();
}
}