From a142c57a4a75477727122130b091f3aec1bd8d91 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sat, 16 Dec 2023 17:52:57 -0500 Subject: finally got map resizing working ? --- src/client/views/nodes/MapBox/MapBox.tsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/MapBox/MapBox.tsx b/src/client/views/nodes/MapBox/MapBox.tsx index b18bb9ad1..d3b293bc2 100644 --- a/src/client/views/nodes/MapBox/MapBox.tsx +++ b/src/client/views/nodes/MapBox/MapBox.tsx @@ -1561,9 +1561,8 @@ export class MapBox extends ViewBoxAnnotatableComponent string[]) => null; return ( @@ -1574,8 +1573,7 @@ export class MapBox extends ViewBoxAnnotatableComponent { e.button === 0 && !e.ctrlKey && e.stopPropagation(); }} - style={{ width: `calc(100% - ${this.sidebarWidthPercent})`, pointerEvents: this.pointerEvents() }}> - {/* style={{ transformOrigin: "top left", transform: `scale(${scale})`, width: `calc(100% - ${this.sidebarWidthPercent})`, pointerEvents: this.pointerEvents() }}> */} + style={{ transformOrigin: 'top left', transform: `scale(${scale})`, width: `calc(100% - ${this.sidebarWidthPercent})`, pointerEvents: this.pointerEvents() }}>
{renderAnnotations(this.transparentFilter)}
{renderAnnotations(this.opaqueFilter)} {SnappingManager.GetIsDragging() ? null : renderAnnotations()} @@ -1665,17 +1663,15 @@ export class MapBox extends ViewBoxAnnotatableComponent