handy il y a 2 mois
Parent
commit
c70ce63762
1 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. 8 2
      src/components/WarehouseMap.vue

+ 8 - 2
src/components/WarehouseMap.vue

@@ -758,9 +758,14 @@ const handleWindowMouseUp = () => {
 
 const updateWrapperSize = () => {
   if (!mapWrapperRef.value) return
+  const nextWidth = Math.round(mapWrapperRef.value.clientWidth)
+  const nextHeight = Math.round(mapWrapperRef.value.clientHeight)
+  if (wrapperSize.value.width === nextWidth && wrapperSize.value.height === nextHeight) {
+    return
+  }
   wrapperSize.value = {
-    width: mapWrapperRef.value.clientWidth,
-    height: mapWrapperRef.value.clientHeight
+    width: nextWidth,
+    height: nextHeight
   }
 }
 
@@ -862,6 +867,7 @@ onBeforeUnmount(() => {
   flex: 1;
   position: relative;
   overflow: auto;
+  scrollbar-gutter: stable both-edges;
   background: var(--map-bg);
 }