]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Make drilldown js width/height computations impact min-height and max-width, not...
authorKevin Ball <kmball11@gmail.com>
Wed, 17 Feb 2016 22:17:22 +0000 (14:17 -0800)
committerKevin Ball <kmball11@gmail.com>
Wed, 17 Feb 2016 22:17:22 +0000 (14:17 -0800)
js/foundation.drilldown.js

index 55ad35c4b8c0530b36adfdd5316aeeb857c72f82..2e505e7af470f5841757f43fdcfcb7b113264cc5 100644 (file)
@@ -284,8 +284,8 @@ class Drilldown {
       max = numOfElems > max ? numOfElems : max;
     });
 
-    result.height = `${max * this.$menuItems[0].getBoundingClientRect().height}px`;
-    result.width = `${this.$element[0].getBoundingClientRect().width}px`;
+    result['min-height'] = `${max * this.$menuItems[0].getBoundingClientRect().height}px`;
+    result['max-width'] = `${this.$element[0].getBoundingClientRect().width}px`;
 
     return result;
   }