]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5467 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 Oct 2022 12:36:27 +0000 (14:36 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 Oct 2022 12:36:27 +0000 (14:36 +0200)
resources/linkeditor/js/linkeditor.js
resources/linkeditor/style/links.sass

index e74b5aed3e9b3fd6d411b38d2507cce580474a74..b57653b2c550d96f05e785b0d8fb274de86f2ef6 100644 (file)
@@ -85,7 +85,7 @@ LinkEditor.prototype = {
         });
 
         $(document).on('mousedown', "#linkeditor-main", function (e) {
-            var deselectAll=true;
+            var deselectAll = true;
             $this.setMouseCoordinates(e);
             if ($(this).hasClass('duplicate')) {
                 $this.links.duplicateLinkClick();
@@ -101,9 +101,9 @@ LinkEditor.prototype = {
             } else {
                 $this.zoom.resetZoomDrag();
                 $this.links.createLinkDrag();
-                deselectAll=false;
+                deselectAll = false;
             }
-            if(deselectAll) {
+            if (deselectAll) {
                 $this.links.deselectAllLinks();
             }
         });
@@ -198,7 +198,7 @@ LinkEditor.prototype = {
                 if ($(e).is('[fb-' + dim + ']')) {
                     let v = parseFloat($(e).attr('fb-' + dim));
                     if (dim === 'width' || dim === 'height') {
-                        css[dim] = v * ($this.fs * $this.zoom.zoom);
+                        css[dim] = (v * ($this.fs * $this.zoom.zoom)) + 1;
                     } else {
                         css[dim] = $this.fluidbookTo(v, dim, rect);
                     }
index f1c08920c17a735a9608a3a71d048dc7ce0b6b5f..3b95a023f0d78eb4a57e00206a819950395b47dc 100644 (file)
@@ -2,8 +2,9 @@
 
 #linkeditor-links
     .link
+        box-sizing: border-box
         position: absolute
-        border: 1px solid currentColor
+        border: currentColor solid 1px
         cursor: cell
 
         &.pendingCreate