Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1147 from Inkdit/hidden-dropdown-fix

Only consider visible buttons when calculating dropdown position.
  • Loading branch information...
commit 5193bb35d6e85e06bad2ba3eeb824269d87fa51d 2 parents fd7d673 + 9aa9a16
Chris Michel authored
View
8 vendor/assets/javascripts/foundation/jquery.foundation.buttons.js
@@ -59,10 +59,10 @@
});
// Positioning the Flyout List
- var normalButtonHeight = $('.button.dropdown:not(.large):not(.small):not(.tiny)', this).outerHeight() - 1,
- largeButtonHeight = $('.button.large.dropdown', this).outerHeight() - 1,
- smallButtonHeight = $('.button.small.dropdown', this).outerHeight() - 1,
- tinyButtonHeight = $('.button.tiny.dropdown', this).outerHeight() - 1;
+ var normalButtonHeight = $('.button.dropdown:not(.large):not(.small):not(.tiny):visible', this).outerHeight() - 1,
+ largeButtonHeight = $('.button.large.dropdown:visible', this).outerHeight() - 1,
+ smallButtonHeight = $('.button.small.dropdown:visible', this).outerHeight() - 1,
+ tinyButtonHeight = $('.button.tiny.dropdown:visible', this).outerHeight() - 1;
$('.button.dropdown:not(.large):not(.small):not(.tiny) > ul', this).css('top', normalButtonHeight);
$('.button.dropdown.large > ul', this).css('top', largeButtonHeight);
Please sign in to comment.
Something went wrong with that request. Please try again.