]> _ Git - fluidbook-html5.git/commitdiff
wip #3688 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Jun 2020 14:41:52 +0000 (16:41 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Jun 2020 14:41:52 +0000 (16:41 +0200)
js/libs/fluidbook/fluidbook.resize.js

index 2f3ceae58107137ea34a86c75fbb4124e9316788..f942885c54c16f27923f3a02596993e7917dba58 100644 (file)
@@ -460,10 +460,23 @@ FluidbookResize.prototype = {
     getScreenFluidbookWidth: function () {
         return $("#fluidbook").outerWidth() * fluidbook.resize.bookScale;
     },
+
+    resizeHorizontalNav: function () {
+        if (!$("#horizontalNav").is(':visible')) {
+            return;
+        }
+        if(Modernizr.msie) {
+            $("#horizontalNav #iconList li a").each(function () {
+                $(this).css({width: $(this).find('img,svg').outerWidth() + 34});
+            });
+        }
+    },
+
     resizeMenu: function () {
         if (this.fluidbook == undefined) {
             return false;
         }
+        this.resizeHorizontalNav();
         if (!this.fluidbook.nav.menuIsOpen) return false;
 
         var wh = $(window).height();