From 93ab35c251b399f3e44ab2fa016e2af13df5a53b Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 3 May 2024 15:28:53 -0400 Subject: fixed not having docs being dragged show up in schema view unless it is active. --- src/client/views/collections/TabDocView.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/client/views/collections/TabDocView.tsx') diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 2d8b2564d..008ef6ab4 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -93,13 +93,10 @@ export class TabMinimapView extends ObservableReactComponent { - if (!this.renderBounds) return
; const { renderBounds } = this; + if (!renderBounds) return
; const miniWidth = () => (this._props.PanelWidth() / NumCast(this._props.document._freeform_scale, 1) / renderBounds.dim) * 100; const miniHeight = () => (this._props.PanelHeight() / NumCast(this._props.document._freeform_scale, 1) / renderBounds.dim) * 100; const miniLeft = () => 50 + ((NumCast(this._props.document._freeform_panX) - renderBounds.cx) / renderBounds.dim) * 100 - miniWidth() / 2; -- cgit v1.2.3-70-g09d2