From: Geoff Kimball Date: Tue, 8 Mar 2016 18:14:00 +0000 (-0800) Subject: Prevent dropdown panes taller than the window from resizing to be full-width, fixes... X-Git-Tag: v6.2.1~43^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d44e0ef4d340ad42bd0cf1d764a42ce6113e9587;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Prevent dropdown panes taller than the window from resizing to be full-width, fixes #7957 --- diff --git a/js/foundation.dropdown.js b/js/foundation.dropdown.js index 3f585138f..07d7c4556 100644 --- a/js/foundation.dropdown.js +++ b/js/foundation.dropdown.js @@ -141,7 +141,7 @@ class Dropdown { this.$element.offset(Foundation.Box.GetOffsets(this.$element, this.$anchor, position, this.options.vOffset, this.options.hOffset)); - while(!Foundation.Box.ImNotTouchingYou(this.$element) && this.counter){ + while(!Foundation.Box.ImNotTouchingYou(this.$element, false, true) && this.counter){ this._reposition(position); this._setPosition(); } diff --git a/test/visual/dropdown/long.html b/test/visual/dropdown/long.html new file mode 100644 index 000000000..458b218e0 --- /dev/null +++ b/test/visual/dropdown/long.html @@ -0,0 +1,51 @@ + + + + + + + Foundation for Sites Testing + + + +
+

Dropdown: Long Content

+ +

This dropdown should not go full-width, even if its contents are higher than the width of the window.

+ + + +
+ + + + + +