]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7879
authorsoufiane <soufiane@cubedesigners.com>
Wed, 25 Feb 2026 15:00:26 +0000 (16:00 +0100)
committersoufiane <soufiane@cubedesigners.com>
Wed, 25 Feb 2026 15:00:26 +0000 (16:00 +0100)
resources/linkeditor-stable/js/linkeditor.links.js

index cd699c8af2aaaf3aceb32127dc907fcfba0823e7..a0092b52a4c858df60fad6ae5c050a8cef684af9 100644 (file)
@@ -1325,7 +1325,7 @@ LinkeditorLinks.prototype = {
         }
         var link = this.getCurrentSelection().eq(0);
         var rect = {
-            x: -margin, y: -margin, width: this.linkeditor.fw + margin * 2, height: this.linkeditor.ph + margin * 2,
+            x: -margin, y: -margin, width: this.linkeditor.fw + margin * 2, height: this.linkeditor.utils.getPageDimensions(this.linkeditor.currentPage)[1] ?? this.linkeditor.ph  + margin * 2,
         };
         if (!this.linkeditor.single && !double) {
             if (parseFloat($(link).attr('fb-left')) > this.linkeditor.pw) {