Skip to content

Instantly share code, notes, and snippets.

@dasim
Created May 30, 2013 13:39
Show Gist options
  • Save dasim/5677878 to your computer and use it in GitHub Desktop.
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
/*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