Menu icon Foundation
Magellan - Different fixed_top value for iPhone 4

Is there a way to set different fixed_top value for multiple device width.

Right now, the fixed_top value in magellan.js renders correctly on my iPhone 6, but when viewing on iPhone 4, the fixed_top is way to big...

Help ! :)

Magellanmobilefixedtopfixed_top iPhonevalue

Is there a way to set different fixed_top value for multiple device width.

Right now, the fixed_top value in magellan.js renders correctly on my iPhone 6, but when viewing on iPhone 4, the fixed_top is way to big...

Help ! :)

This post has been closed. No new replies can be added.

Rafi Benkual almost 5 years ago

You can adjust it in the setting.

<div data-magellan-expedition="fixed" data-options="fixed_top: 0;">

or
Javascript
$(document).foundation({
"magellan-expedition": {
fixed_top: 0, // top distance in pixels assigend to the fixed element on scroll
}
});

Eric Dumensil almost 5 years ago

Thanks Rafi,

I realized that it had a different fixed-top probably because I used a simulator, when viewing on an actual iPhone 4, everything was ok..

Thanks tho! :)