aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-09 16:21:17 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-09 16:21:17 -0500
commit93dfc57bd89e586aa9747cde37937bad479a0597 (patch)
treeaabc6a3bbed8bfae1081f780e5effc56df22e279 /src/client/views/collections/collectionFreeForm
parentdca4d8656011d44eebf0f8938e1df9ee3404a963 (diff)
fixed textbox preview
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index fdc8536f8..2f712d609 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -1183,7 +1183,10 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P
if (this._marqueeRef?.current) {
const dragX = e.detail.clientX;
const dragY = e.detail.clientY;
- const bounds = this._marqueeRef.current?.getBoundingClientRect()!;
+ const bounds = this._marqueeRef.current?.getBoundingClientRect();
+
+ console.log("bottom: " + bounds.bottom);
+ console.log("right: " + bounds.right);
if (dragX - bounds.left < 25) {
console.log("PAN left ");