]> _ Git - fluidbook-html5.git/commitdiff
wait #4285 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Sun, 21 Feb 2021 20:11:08 +0000 (21:11 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Sun, 21 Feb 2021 20:11:08 +0000 (21:11 +0100)
js/libs/fluidbook/cart/fluidbook.cart.grandvision.js
js/libs/fluidbook/fluidbook.cart.js
style/cart/grandvision.less

index e4530941688e5182d6205b1699ed31f21a40643f..2ed2ddb2b2521b01c94d140833467754ddf60300 100644 (file)
@@ -31,6 +31,10 @@ FluidbookCartGrandVision.prototype = {
         });
     },
 
+    getTooltipStyle:function(){
+      return 'invert';
+    },
+
     openMenu: function (p1, p2, cb) {
         if (p1 === 'details') {
             return this.openDetails(p2, cb);
@@ -71,6 +75,8 @@ FluidbookCartGrandVision.prototype = {
         } else {
             $("#emptyres").show();
         }
+
+        $("#grandvision-selection .items").perfectScrollbar();
     },
 
     openSelection: function (cb) {
@@ -78,7 +84,7 @@ FluidbookCartGrandVision.prototype = {
 
         var res = '<div id="grandvision-cart">';
         res += this.fluidbook.menu.getCaption('', true);
-        res += '<div class="content">';
+        res += '<div class="content noscroll">';
         res += this.cartSelection();
         res += this.cartBoxes();
         res += '</div>';
@@ -101,6 +107,8 @@ FluidbookCartGrandVision.prototype = {
             });
         });
 
+        $("#grandvision-selection .items").perfectScrollbar();
+
 
         if (cb !== undefined) {
             cb();
index 1435c1ffb32135d68e513d0eb0b542043a0004ee..16575d06da48aa16ee45cf4da743b39d4e7b0a9f 100644 (file)
@@ -45,7 +45,7 @@ FluidbookCart.prototype = {
             $this.fluidbook.tooltip.displayTooltip(tooltip, tooltipStyle);
             setTimeout(function(){
                 $this.fluidbook.tooltip.hideTooltip();
-            },5000)
+            },2500)
 
             return false;
         });
index 36e2089f7b083a7b37221fb28072c2b998684cfd..b9d5035172288545c50176c835091cfdaa4327b8 100644 (file)
@@ -1,10 +1,10 @@
 #grandvision-cart {
   @bleu: #2459a9;
   background-color: #f3f3f3;
-  color: #000;
   padding: 0 40px 40px 40px;
 
   .content {
+    color: #000;
     text-align: left;
     overflow: visible !important;
 
@@ -16,7 +16,7 @@
 
     #grandvision-selection {
       display: inline-block;
-      width: 550px;
+      width: 520px;
       vertical-align: top;
       margin-top: -20px;
       height: 700px;
       }
 
       .items {
-        width: 550px;
+        width: 520px;
+        max-height: 580px;
+        position: relative;
 
         .item {
           width: 515px;
       height: 700px;
       vertical-align: top;
       margin-top: -20px;
+      margin-left: 40px;
     }
   }
 }