Menu icon Foundation
data-equalize-on-stack="false" not working

Hi!

I'm wanting my columns to not equalize on stack. This seems like a simple task, but I cannot get this to work for the life of me!

I've tried both of these methods with no luck. I have also tried initialising with JavaScript, but no luck there either.

data-equalize-on-stack="false"

data-options="equalizeOnStack: false;"

I have checked I'm using 6.0.5 as per this post - https://foundation.zurb.com/forum/posts/36754-problem-with-data-options-f6

Here is my code: http://codepen.io/sjmac/pen/RraOxZ

Is there something simple I'm missing?

Cheers

foundation 6Equalizer

Hi!

I'm wanting my columns to not equalize on stack. This seems like a simple task, but I cannot get this to work for the life of me!

I've tried both of these methods with no luck. I have also tried initialising with JavaScript, but no luck there either.

data-equalize-on-stack="false"

data-options="equalizeOnStack: false;"

I have checked I'm using 6.0.5 as per this post - https://foundation.zurb.com/forum/posts/36754-problem-with-data-options-f6

Here is my code: http://codepen.io/sjmac/pen/RraOxZ

Is there something simple I'm missing?

Cheers

Brian Tan almost 4 years ago

equalizeOnStack is not implemented as of 6.0.6

Stephen over 3 years ago

Thanks, but I'm currently using 6.0.5, is it not implemented on that version?

In the meantime I've decided to use matchHeight.js, which is working as expected.

Brian Tan over 3 years ago

Don't think so. Not in 6.0.x

Stephen over 3 years ago

Are you sure? The docs state it as an option, and I can also see the defaults in the 6.0.5 js file?

 /**
   * Default settings for plugin
   */
  Equalizer.defaults = {
    /**
     * Enable height equalization when stacked on smaller screens.
     * @option
     * @example true
     */
    equalizeOnStack: true,
    /**
     * Amount of time, in ms, to debounce the size checking/equalization. Lower times mean smoother transitions/less performance on mobile.
     * @option
     * @example 50
     */
    throttleInterval: 50
  };

Brian Tan over 3 years ago

Yes, but if you check the rest of the codes, the option is not referred to anywhere.

Stephen over 3 years ago

Ok thanks. Frustrating that the docs are incorrect, but good to know.

Brian Tan over 3 years ago

It will be in 6.1, scheduled to released tomorrow (?).

Also new options equalizeByRow and equalizeOn.