]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
possible fix for #8671 8673/head
authorjk <j.koehler@modulingo.de>
Tue, 26 Apr 2016 17:31:25 +0000 (19:31 +0200)
committerjk <j.koehler@modulingo.de>
Tue, 26 Apr 2016 17:31:25 +0000 (19:31 +0200)
use getBoundingClintRect().top to detect stack

js/foundation.equalizer.js

index 3c51537d32f7a916d7a47ad59fb6cfaeddeb046e..f20f279f208399e514480384ab41c1c1e03d5edd 100644 (file)
@@ -132,7 +132,7 @@ class Equalizer {
    * @private
    */
   _isStacked() {
-    return this.$watched[0].offsetTop !== this.$watched[1].offsetTop;
+    return this.$watched[0].getBoundingClientRect().top !== this.$watched[1].getBoundingClientRect().top;
   }
 
   /**