]> _ Git - fluidbook-html5.git/commitdiff
wait #7881 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Dec 2025 12:00:31 +0000 (13:00 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Dec 2025 12:00:31 +0000 (13:00 +0100)
js/libs/fluidbook/fluidbook.tabs.js

index 828c519764a6942aa3b6a3bbdfd9356d8fb6cc25..6db55f29fc1ddb6ec71287548ee0522dbadbb78d 100644 (file)
@@ -309,7 +309,11 @@ FluidbookTabs.prototype = {
 
         var commoncss = {};
         commoncss.width = (100 * (this.linkWidth / this.naturalDimensions.width)) + "%";
-        commoncss.left = (-100 * (this.margin / this.naturalDimensions.width)) + "%";
+        if (this.align === 'right') {
+            commoncss.left = (-100 * (this.margin / this.naturalDimensions.width)) + "%";
+        } else {
+            commoncss.right = (-100 * (this.margin / this.naturalDimensions.width)) + "%";
+        }
 
         $(this.links).each(function (k, v) {
             var l = $('<a class="tablink" />');