Merge branch 'hotfix/3.3.2' into develop

This commit is contained in:
Michael Rose 2016-07-14 12:01:09 -04:00
commit e01b0f464e
4 changed files with 18 additions and 7 deletions

View file

@ -1,3 +1,9 @@
## [3.3.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.3.2)
### Bug Fixes
- Fix JavaScript that triggers "sticky" sidebar to avoid layout issues on screen sizes < `1024px`. [#396](https://github.com/mmistakes/minimal-mistakes/issues/396)
## [3.3.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.3.1)
### Enhancements

View file

@ -11,7 +11,12 @@ $(document).ready(function(){
$(".sticky").Stickyfill();
var stickySideBar = function(){
if (!$(".author__urls-wrapper button").is(":visible")) {
var show = $(".author__urls-wrapper button").length === 0 ? $(window).width() > 1024 : !$(".author__urls-wrapper button").is(":visible");
// console.log("has button: " + $(".author__urls-wrapper button").length === 0);
// console.log("Window Width: " + windowWidth);
// console.log("show: " + show);
//old code was if($(window).width() > 1024)
if (show) {
// fix
Stickyfill.rebuild();
Stickyfill.init();

10
assets/js/main.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "minimal-mistakes",
"version": "3.3.1",
"version": "3.3.2",
"description": "Minimal Mistakes Jekyll theme npm build scripts",
"repository": {
"type": "git",