Browse Source

fix: connection out of viewport when reroute

Ahmad Kholid 3 years ago
parent
commit
26c256acb9
1 changed files with 2 additions and 17 deletions
  1. 2 17
      src/assets/css/drawflow.css

+ 2 - 17
src/assets/css/drawflow.css

@@ -12,7 +12,7 @@
   display: flex;
   display: flex;
   overflow: hidden;
   overflow: hidden;
   touch-action: none;
   touch-action: none;
-  outline: 0
+  outline: none;
 }
 }
 
 
 .drawflow {
 .drawflow {
@@ -24,6 +24,7 @@
 
 
 .drawflow .drawflow-node {
 .drawflow .drawflow-node {
   position: absolute;
   position: absolute;
+  align-items: center;
   background: white;
   background: white;
   min-width: 150px;
   min-width: 150px;
   min-height: 40px;
   min-height: 40px;
@@ -110,7 +111,6 @@
   stroke: #000;
   stroke: #000;
   stroke-width: 2;
   stroke-width: 2;
   fill: #fff;
   fill: #fff;
-  transform: translate(-9999px, -9999px);
 }
 }
 
 
 .drawflow .connection .point.selected,
 .drawflow .connection .point.selected,
@@ -124,21 +124,6 @@
   stroke: theme('colors.accent');
   stroke: theme('colors.accent');
 }
 }
 
 
-.drawflow .selectbox {
-  z-index: 3;
-  position: absolute;
-  transform: translate(9999px, 9999px)
-}
-
-.drawflow .selectbox rect {
-  fill: #00f;
-  opacity: .5;
-  stroke: #ff0;
-  stroke-width: 5;
-  stroke-opacity: .5;
-  transform: translate(-9999px, -9999px)
-}
-
 .drawflow-delete {
 .drawflow-delete {
   position: absolute;
   position: absolute;
   display: block;
   display: block;