]> _ Git - fluidbook-html5.git/commitdiff
#1759
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 18 Oct 2017 15:46:28 +0000 (17:46 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 18 Oct 2017 15:46:28 +0000 (17:46 +0200)
js/libs/fluidbook/fluidbook.background.js
js/libs/fluidbook/fluidbook.resize.js
style/fluidbook.less

index 0a14f0c0c0e3bdbde5adb7244727088d52d59aec..6a785b84054a263f0f89cfbdfbc84d344ebc2bde 100644 (file)
@@ -19,6 +19,11 @@ FluidbookBackground.prototype = {
             return;
         }
 
+        // Don't scale links if there is tabs (tabs have their own resize process)
+        if($("#background").find('.tabslink').length>0){
+            return;
+        }
+
         var left, top, iw, ih;
 
         if (this.fluidbook.datas.backgroundImageDimensions == undefined) {
index d09a5073e298f2b2065cfe3e2e8e0e20c45efdca..6d162edd0555687dc672dce9f33ddca219b99fa8 100644 (file)
@@ -1,12 +1,8 @@
 function FluidbookResize(fluidbook) {
     this.fluidbook = fluidbook;
-    var marginX = 60;
-    var marginY = 20;
 
-    this.marginleft = marginX + parseInt(this.fluidbook.datas.extraXSpace);
-    this.margintop = marginY + parseInt(this.fluidbook.datas.extraYSpace);
-    this.marginbottom = marginY + 20;
-    this.marginright = marginX;
+    this.setMargins();
+
     this.corr = 0.8;
     this.referenceWidthLandscape = 1024;
     this.referenceWidthPortrait = 400;
@@ -23,6 +19,16 @@ function FluidbookResize(fluidbook) {
 }
 
 FluidbookResize.prototype = {
+    setMargins: function () {
+        var marginX = 60;
+        var marginY = 20;
+
+        this.marginleft = marginX + parseInt(this.fluidbook.datas.extraXSpace);
+        this.margintop = marginY + parseInt(this.fluidbook.datas.extraYSpace);
+        this.marginbottom = marginY + 20;
+        this.marginright = marginX;
+    },
+
     init: function () {
 
         // Manage transform origins based on text direction
index 8dc9c8f53d1db25d27665a3fc5437fc9183699ba..0fb168be4f3da8dc131b69008349b2d80cfe059a 100644 (file)
@@ -2313,8 +2313,9 @@ body > input {
        .tabs {
                transition: opacity 400ms;
                position: relative;
-               &.hidezoomin, &.hideportrait, &.hidelastpage, &.hidefirstpage {
+               &.hide {
                        opacity: 0;
+                       pointer-events: none;
                }
 
                .tablink {