From fb918c91e9c7533868601c6d3e23687b5dccf1df Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Wed, 21 Oct 2020 23:09:41 -0400
Subject: fixed warnings.  fixed pinning of multiple documents at the same time
 to bring up the presentation view just once.

---
 src/client/views/presentationview/PresElementBox.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/presentationview/PresElementBox.tsx')

diff --git a/src/client/views/presentationview/PresElementBox.tsx b/src/client/views/presentationview/PresElementBox.tsx
index 33b67ae69..6ebb7d623 100644
--- a/src/client/views/presentationview/PresElementBox.tsx
+++ b/src/client/views/presentationview/PresElementBox.tsx
@@ -266,7 +266,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc
 
     @computed
     get toolbarWidth(): number {
-        const presBoxDocView = DocumentManager.Instance.getDocumentView(this.presBox)
+        const presBoxDocView = DocumentManager.Instance.getDocumentView(this.presBox);
         let width: number = NumCast(this.presBox._width);
         if (presBoxDocView) width = presBoxDocView.props.PanelWidth();
         return width;
-- 
cgit v1.2.3-70-g09d2


From 05257784ed7c0e6ed9ce5375cd5e3cccc04c7bec Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Thu, 22 Oct 2020 00:20:26 -0400
Subject: fixed problem when dragging preselements when sometimes the whole
 screen turns gray because the dragged item has no width/height

---
 src/client/views/presentationview/PresElementBox.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/client/views/presentationview/PresElementBox.tsx')

diff --git a/src/client/views/presentationview/PresElementBox.tsx b/src/client/views/presentationview/PresElementBox.tsx
index 6ebb7d623..b260bc00d 100644
--- a/src/client/views/presentationview/PresElementBox.tsx
+++ b/src/client/views/presentationview/PresElementBox.tsx
@@ -142,6 +142,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc
         e.preventDefault();
         if (element && !(e.ctrlKey || e.metaKey)) {
             if (PresBox.Instance._selectedArray.includes(this.rootDoc)) {
+                PresBox.Instance.regularSelect(this.rootDoc, this._itemRef.current!, this._dragRef.current!, false);
                 setupMoveUpEvents(this, e, this.startDrag, emptyFunction, emptyFunction);
             } else {
                 setupMoveUpEvents(this, e, ((e: PointerEvent) => {
-- 
cgit v1.2.3-70-g09d2

