From: Kevin Ball Date: Wed, 17 Feb 2016 22:17:22 +0000 (-0800) Subject: Make drilldown js width/height computations impact min-height and max-width, not... X-Git-Tag: v6.2.0~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6846e779e31dcb4e937a24f47d741b719e19620d;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Make drilldown js width/height computations impact min-height and max-width, not height and width --- diff --git a/js/foundation.drilldown.js b/js/foundation.drilldown.js index 55ad35c4b..2e505e7af 100644 --- a/js/foundation.drilldown.js +++ b/js/foundation.drilldown.js @@ -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; }