From e1acd0061c45f680fee85f10e9187b9769022a40 Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Tue, 12 Feb 2019 08:44:14 -0500 Subject: got rid of extra divs in collectionFreeFormView .... good idea or bad? --- .../views/collections/CollectionFreeFormView.scss | 9 +--- .../views/collections/CollectionFreeFormView.tsx | 48 +++++++++++----------- 2 files changed, 25 insertions(+), 32 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionFreeFormView.scss b/src/client/views/collections/CollectionFreeFormView.scss index e9d134e7b..4cf474f77 100644 --- a/src/client/views/collections/CollectionFreeFormView.scss +++ b/src/client/views/collections/CollectionFreeFormView.scss @@ -1,4 +1,6 @@ .collectionfreeformview-container { + border-style: solid; + box-sizing: border-box; position: relative; top: 0; left: 0; @@ -10,11 +12,4 @@ top: 0; left: 0; } -} - -.border { - border-style: solid; - box-sizing: border-box; - width: 100%; - height: 100%; } \ No newline at end of file diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx index e485c8e14..f767bbc16 100644 --- a/src/client/views/collections/CollectionFreeFormView.tsx +++ b/src/client/views/collections/CollectionFreeFormView.tsx @@ -20,7 +20,6 @@ export class CollectionFreeFormView extends CollectionViewBase { public static LayoutString() { return CollectionViewBase.LayoutString("CollectionFreeFormView"); } private _containerRef = React.createRef(); private _canvasRef = React.createRef(); - private _nodeContainerRef = React.createRef(); private _lastX: number = 0; private _lastY: number = 0; private _downX: number = 0; @@ -221,30 +220,29 @@ export class CollectionFreeFormView extends CollectionViewBase { const pany: number = Document.GetNumber(KeyStore.PanY, 0); return ( -
-
e.preventDefault()} - onDrop={this.onDrop} - onDragOver={this.onDragOver} - ref={this._containerRef}> -
- -
- {this.props.BackgroundView} - {value.map(doc => { - return (); - })} -
-
+
e.preventDefault()} + onDrop={this.onDrop} + onDragOver={this.onDragOver} + style={{ + borderWidth: `${COLLECTION_BORDER_WIDTH}px`, + }} + ref={this._containerRef}> +
+ + {this.props.BackgroundView} + {value.map(doc => { + return (); + })}
); -- cgit v1.2.3-70-g09d2