vendor/assets/javascripts/uikit/core/switcher.js in uikit2-rails-0.1.1 vs vendor/assets/javascripts/uikit/core/switcher.js in uikit2-rails-0.1.2

- old
+ new

@@ -1,6 +1,6 @@ -/*! UIkit 2.22.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(UI) { "use strict"; var Animations; @@ -184,10 +184,11 @@ next.attr('aria-hidden', 'false'); UI.Utils.checkDisplay(next, true); $this.animating = false; + }); }); } this.trigger("show.uk.switcher", [active]); @@ -266,18 +267,22 @@ if (typeof(cls) == 'object') { clsIn = cls[0]; clsOut = cls[1] || cls[0]; } + UI.$body.css('overflow-x', 'hidden'); // fix scroll jumping in iOS + release = function() { if (current) current.hide().removeClass('uk-active '+clsOut+' uk-animation-reverse'); next.addClass(clsIn).one(UI.support.animation.end, function() { next.removeClass(''+clsIn+'').css({opacity:'', display:''}); d.resolve(); + + UI.$body.css('overflow-x', ''); if (current) current.css({opacity:'', display:''}); }.bind(this)).show(); };