]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Merge pull request #9881 from dwt47/develop
authorKevin Ball <kmball11@gmail.com>
Wed, 5 Jul 2017 22:04:37 +0000 (15:04 -0700)
committerKevin Ball <kmball11@gmail.com>
Tue, 25 Jul 2017 00:06:16 +0000 (17:06 -0700)
Fix bug on Orbit resize during transition

js/foundation.orbit.js

index b26d0bd7566c1626cdfc10cf3c33c85462acb896..38b83790489fceb65bfe62c2939bc8db9749a1a4 100644 (file)
@@ -149,7 +149,7 @@ class Orbit extends Plugin {
       temp = this.getBoundingClientRect().height;
       $(this).attr('data-slide', counter);
 
-      if (_this.$slides.filter('.is-active')[0] !== _this.$slides.eq(counter)[0]) {//if not the active slide, set css position and display property
+      if (!/mui/g.test($(this)[0].className) && _this.$slides.filter('.is-active')[0] !== _this.$slides.eq(counter)[0]) {//if not the active slide, set css position and display property
         $(this).css({'position': 'relative', 'display': 'none'});
       }
       max = temp > max ? temp : max;