Foundation-sites: How to reset Magellan barOffset after initialization?

Created on 9 Mar 2017  路  7Comments  路  Source: foundation/foundation-sites

How to reset Magellan barOffset after initialization?
Tried these, but not working:

  • setting Foundation.Magellan.defaults.barOffset = offset
    setting $element data-bar-offset
  • Foundation.reInit(magellan) not updating to the new value
  • $element.foundation('destroy'), then $element.foundation() neither; and this didn't initialize for toogle-element inside magellan-element
javascript 馃悰bug

Most helpful comment

Good this going to be resolved:)

All 7 comments

Quick fix:


                var data_zfPlugin = $menu_zf_magellan
                    .data('zfPlugin')

                data_zfPlugin.options.barOffset = new_offset_100

                var data_zfPlugin = $menu_zf_magellan
                    .data('zfPlugin', data_zfPlugin)

@klihelp is here a way to reset/reinit the plugin? im trying to fix the following issue https://github.com/zurb/foundation-sites/issues/9829

@fchengpc
see above;

foundation('reflow') miss to refresh modified options.

$element.foundation('destroy'), then $element.foundation()  neither;
and this didn't initialize for  toogle-element inside magellan-element 

Good this going to be resolved:)

Is this resolved and made it into the 6.4?
https://github.com/zurb/foundation-sites/releases/tag/v6.4.0

reflow is just for the styles and state and not the whole options object.

@klihelp a codepen could be very helpful to have some sort of testcase for us.

Was this page helpful?
0 / 5 - 0 ratings