]> _ Git - fluidbook-html5.git/commitdiff
wait #7764 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 26 Sep 2025 14:28:34 +0000 (16:28 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 26 Sep 2025 14:28:34 +0000 (16:28 +0200)
js/libs/fluidbook/fluidbook.menu.js

index b37c744207d3c1ac1cb39935a79a9643981b39dd..e9ef906b19a2283f79f815dfe3794c054ca4dad5 100644 (file)
@@ -1193,7 +1193,13 @@ FluidbookMenu.prototype = {
 
         var captionHeight = 0;
         m.find('.caption, .fixed, .fonctions').each(function () {
-            captionHeight += $(this).outerHeight();
+            if ($(this).closest('.content').length > 0) {
+                return;
+            }
+            let ch = $(this).outerHeight();
+            captionHeight += ch;
+            console.log(ch, $(this));
+
         });
 
         if (maxWidth > 0) {