Created
May 30, 2013 13:39
-
-
Save dasim/5677878 to your computer and use it in GitHub Desktop.
Fixed positioning of Zurb Foundation 4 dropdowns in IE8. ZF4 expects you to serve IE8 with mobile stylesheet but if you use respond.js or ZF4 grid polyfill (https://gist.github.com/zurbchris/5068210) you want it to behave differently. Usage: insert after foundation.js and foundation.dropdown.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint unparam: true, browser: true, indent: 2 */ | |
;(function ($, window, document, undefined) { | |
'use strict'; | |
Foundation.libs.dropdown.small = function () { | |
return $(window).width() < 768; | |
}; | |
}(Foundation.zj, this, this.document)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment